Remove test the `[NotNull]` move makes irrelevant
This commit is contained in:
parent
8636477b85
commit
efe39e43f5
|
|
@ -12,18 +12,6 @@ namespace Microsoft.AspNet.Routing.Tests
|
||||||
{
|
{
|
||||||
public class RouteOptionsTests
|
public class RouteOptionsTests
|
||||||
{
|
{
|
||||||
[Fact]
|
|
||||||
public void ConstraintMap_SettingNullValue_Throws()
|
|
||||||
{
|
|
||||||
// Arrange
|
|
||||||
var options = new RouteOptions();
|
|
||||||
|
|
||||||
// Act & Assert
|
|
||||||
var ex = Assert.Throws<ArgumentNullException>(() => options.ConstraintMap = null);
|
|
||||||
Assert.Equal("The 'ConstraintMap' property of 'Microsoft.AspNet.Routing.RouteOptions' must not be null." +
|
|
||||||
Environment.NewLine + "Parameter name: value", ex.Message);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void ConfigureRouting_ConfiguresOptionsProperly()
|
public void ConfigureRouting_ConfiguresOptionsProperly()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue