Skip to content

Commit 9010435

Browse files
committed
Removed route extensions for .Net Core
Both `RouteCollection_Extensions` and `RouteValueDictionary_Extensions` rely on things that were heavily modified for Asp.Net Core. It's really complex to rewrite them and it will need some thinking. Moreover, I'm not completely conviced it it still usefull, as route information can be tested in a simpler way, cf: https://github.com/aspnet/Mvc/blob/6.0.0-rc1/test/Microsoft.AspNet.Mvc.FunctionalTests/RoutingTests.cs
1 parent fb9cd60 commit 9010435

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/FluentAssertions.Mvc.Shared/RouteCollection_Extensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if !NETSTANDARD1_6
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
45
using System.Text;
@@ -19,3 +20,4 @@ public static RouteData GetRouteDataForUrl(this RouteCollection routes, string u
1920
}
2021
}
2122
}
23+
#endif

src/FluentAssertions.Mvc.Shared/RouteValueDictionary_Extensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Web.Mvc;
1+
#if !NETSTANDARD1_6
2+
using System.Web.Mvc;
23
using System.Web.Routing;
34
using FluentAssertions.Mvc.Fakes;
45

@@ -15,3 +16,4 @@ public static string GenerateUrl(this RouteValueDictionary routeValues, RouteCol
1516
}
1617
}
1718
}
19+
#endif

0 commit comments

Comments
 (0)