Updating test TFMs for custom test discovery
This commit is contained in:
parent
a928982055
commit
b294828b0f
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Localization.FunctionalTests
|
|||
public class LocalizationSampleTest
|
||||
{
|
||||
private static readonly string _applicationPath =
|
||||
#if DNX451
|
||||
#if NET451
|
||||
Path.GetFullPath(Path.Combine("..", "..", "..", "..", "samples", "LocalizationSample"));
|
||||
#else
|
||||
Path.GetFullPath(Path.Combine("..", "..", "samples", "LocalizationSample"));
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Localization.FunctionalTests
|
|||
public class LocalizationTest
|
||||
{
|
||||
private static readonly string _applicationPath =
|
||||
#if DNX451
|
||||
#if NET451
|
||||
Path.GetFullPath(Path.Combine("..", "..", "..", "LocalizationWebsite"));
|
||||
#else
|
||||
Path.GetFullPath(Path.Combine("..", "LocalizationWebsite"));
|
||||
|
|
|
|||
|
|
@ -4,9 +4,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"Microsoft.AspNetCore.Server.Testing": "1.0.0-*",
|
||||
"Microsoft.Extensions.Logging": "1.0.0-*",
|
||||
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
|
||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
"xunit": "2.1.0"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnxcore50": {
|
||||
|
|
@ -15,6 +16,14 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {}
|
||||
}
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": ""
|
||||
},
|
||||
"dependencies": {
|
||||
"xunit.runner.console": "2.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"testRunner": "xunit"
|
||||
}
|
||||
|
|
@ -37,7 +37,7 @@ namespace Microsoft.AspNetCore.Localization.Tests
|
|||
{
|
||||
// Arrange
|
||||
var explicitCulture = new CultureInfo("fr-FR");
|
||||
#if DNX451
|
||||
#if NET451
|
||||
Thread.CurrentThread.CurrentCulture = explicitCulture;
|
||||
Thread.CurrentThread.CurrentUICulture = explicitCulture;
|
||||
#else
|
||||
|
|
@ -78,7 +78,7 @@ namespace Microsoft.AspNetCore.Localization.Tests
|
|||
{
|
||||
// Arrange
|
||||
var explicitCulture = new CultureInfo("fr-FR");
|
||||
#if DNX451
|
||||
#if NET451
|
||||
Thread.CurrentThread.CurrentCulture = explicitCulture;
|
||||
Thread.CurrentThread.CurrentUICulture = explicitCulture;
|
||||
#else
|
||||
|
|
@ -96,7 +96,7 @@ namespace Microsoft.AspNetCore.Localization.Tests
|
|||
|
||||
public void Dispose()
|
||||
{
|
||||
#if DNX451
|
||||
#if NET451
|
||||
Thread.CurrentThread.CurrentCulture = _initialCulture;
|
||||
Thread.CurrentThread.CurrentUICulture = _initialUICulture;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Threading.Tasks": ""
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
"Microsoft.Extensions.Localization": "1.0.0-*",
|
||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
||||
"xunit": "2.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnxcore50": {
|
||||
|
|
@ -19,10 +18,16 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"net451": {
|
||||
"frameworkAssemblies": {
|
||||
"System.Runtime": "",
|
||||
"System.Threading.Tasks": ""
|
||||
},
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
"Moq": "4.2.1312.1622",
|
||||
"xunit.runner.console": "2.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"testRunner": "xunit"
|
||||
}
|
||||
Loading…
Reference in New Issue