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:
parent
7a955bcbc0
commit
51564d04c0
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue