diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/MvcOptionsTest.cs b/test/Microsoft.AspNet.Mvc.Core.Test/MvcOptionsTest.cs index 6bb3ec0010..e1f3da4d72 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/MvcOptionsTest.cs +++ b/test/Microsoft.AspNet.Mvc.Core.Test/MvcOptionsTest.cs @@ -18,18 +18,5 @@ namespace Microsoft.AspNet.Mvc var ex = Assert.Throws(() => 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( - () => options.CacheProfiles.Add("HelloWorld", new CacheProfile { Duration = 5 })); - Assert.Equal("An item with the same key has already been added.", ex.Message); - } } } \ No newline at end of file