Fix test issue vs. case sensitive file systems
This commit is contained in:
parent
b4e21df424
commit
c00e84dd9b
1 changed files with 4 additions and 4 deletions
|
@ -72,8 +72,8 @@ namespace Microsoft.DotNet.New.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
[InlineData("console", "RuntimeFrameworkVersion", "Microsoft.NETCore.App")]
|
[InlineData("console", "RuntimeFrameworkVersion", "microsoft.netcore.app")]
|
||||||
[InlineData("classlib", "NetStandardImplicitPackageVersion", "NETStandard.Library")]
|
[InlineData("classlib", "NetStandardImplicitPackageVersion", "netstandard.library")]
|
||||||
public void NewProjectRestoresCorrectPackageVersion(string type, string propertyName, string packageName)
|
public void NewProjectRestoresCorrectPackageVersion(string type, string propertyName, string packageName)
|
||||||
{
|
{
|
||||||
// These will fail when templates stop including explicit version.
|
// These will fail when templates stop including explicit version.
|
||||||
|
@ -113,7 +113,7 @@ namespace Microsoft.DotNet.New.Tests
|
||||||
.EnumerateDirectories()
|
.EnumerateDirectories()
|
||||||
.Single(d => d.Name.StartsWith("2.0.0"));
|
.Single(d => d.Name.StartsWith("2.0.0"));
|
||||||
|
|
||||||
if (packageName == "Microsoft.NETCore.App")
|
if (packageName == "microsoft.netcore.app")
|
||||||
{
|
{
|
||||||
return sharedFxDir.Name;
|
return sharedFxDir.Name;
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ namespace Microsoft.DotNet.New.Tests
|
||||||
var context = reader.Read(stream);
|
var context = reader.Read(stream);
|
||||||
var dependency = context
|
var dependency = context
|
||||||
.RuntimeLibraries
|
.RuntimeLibraries
|
||||||
.Single(library => library.Name.Equals(packageName, StringComparison.OrdinalIgnoreCase));
|
.Single(library => library.Name == packageName);
|
||||||
|
|
||||||
return dependency.Version;
|
return dependency.Version;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue