Remove a test that tests Dictionary

This test is coupled to Dictionary<>'s error message. We don't need this.
This commit is contained in:
Ryan Nowak 2015-12-30 16:55:51 -08:00
parent 7a955bcbc0
commit 51564d04c0
1 changed files with 0 additions and 13 deletions

View File

@ -18,18 +18,5 @@ namespace Microsoft.AspNet.Mvc
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => options.MaxModelValidationErrors = -1);
Assert.Equal("value", ex.ParamName);
}
[Fact]
public void ThrowsWhenMultipleCacheProfilesWithSameNameAreAdded()
{
// Arrange
var options = new MvcOptions();
options.CacheProfiles.Add("HelloWorld", new CacheProfile { Duration = 10 });
// Act & Assert
var ex = Assert.Throws<ArgumentException>(
() => options.CacheProfiles.Add("HelloWorld", new CacheProfile { Duration = 5 }));
Assert.Equal("An item with the same key has already been added.", ex.Message);
}
}
}