This repository was archived by the owner on Dec 14, 2018. It is now read-only.
File tree 2 files changed +8
-5
lines changed
test/Microsoft.AspNet.Mvc.FunctionalTests
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,12 @@ public class LinkGenerationTests
27
27
private readonly Action < IServiceCollection > _configureServices = new BasicWebSite . Startup ( ) . ConfigureServices ;
28
28
29
29
[ Theory ]
30
- [ InlineData ( "http://pingüino/Home/RedirectToActionReturningTaskAction" , "/Home/ActionReturningTask" ) ]
31
- [ InlineData ( "http://pingüino/Home/RedirectToRouteActionAsMethodAction" , "/Home/ActionReturningTask" ) ]
32
- [ InlineData ( "http://pingüino/Home/RedirectToRouteUsingRouteName" , "/api/orders/10" ) ]
30
+ // Though host should not be important, pingüino did not work here with Core CLR on Linux. Seems to be a
31
+ // current HttpClient, System.Uri or text normalization issue. Hits a MissingMethodException in
32
+ // System.StringNormalizationExtensions.IsNormalized().
33
+ [ InlineData ( "http://localhost/Home/RedirectToActionReturningTaskAction" , "/Home/ActionReturningTask" ) ]
34
+ [ InlineData ( "http://localhost/Home/RedirectToRouteActionAsMethodAction" , "/Home/ActionReturningTask" ) ]
35
+ [ InlineData ( "http://localhost/Home/RedirectToRouteUsingRouteName" , "/api/orders/10" ) ]
33
36
public async Task GeneratedLinksWithActionResults_AreRelativeLinks_WhenSetOnLocationHeader (
34
37
string url ,
35
38
string expected )
@@ -39,8 +42,6 @@ public async Task GeneratedLinksWithActionResults_AreRelativeLinks_WhenSetOnLoca
39
42
var client = server . CreateClient ( ) ;
40
43
41
44
// Act
42
-
43
- // The host is not important as everything runs in memory and tests are isolated from each other.
44
45
var response = await client . GetAsync ( url ) ;
45
46
var responseContent = await response . Content . ReadAsStringAsync ( ) ;
46
47
Original file line number Diff line number Diff line change 10
10
using System . Threading . Tasks ;
11
11
using BasicWebSite ;
12
12
using Microsoft . AspNet . Builder ;
13
+ using Microsoft . AspNet . Testing ;
13
14
using Microsoft . Framework . DependencyInjection ;
14
15
using Microsoft . Framework . WebEncoders ;
15
16
using Xunit ;
@@ -194,6 +195,7 @@ public async Task ViewsWithModelMetadataAttributes_CanRenderForm()
194
195
}
195
196
196
197
[ Fact ]
198
+ [ ReplaceCulture ]
197
199
public async Task ViewsWithModelMetadataAttributes_CanRenderPostedValue ( )
198
200
{
199
201
// Arrange
You can’t perform that action at this time.
0 commit comments