Skip to content

Commit

Permalink
fix Reqnroll.TestProjectGenerator.Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparnagy committed Nov 5, 2024
1 parent f8ea832 commit 7c22e2f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public void CreateEmptyCSharpNet60ProjectInNewFormat()
string projectFileContent = GetProjectFileContent(solutionFolder, project);

projectFileContent.Should()
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net6.0</TargetFramework>\r\n <ImplicitUsings>enable</ImplicitUsings>\r\n <Nullable>enable</Nullable>\r\n </PropertyGroup>\r\n</Project>");
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net6.0</TargetFramework>\r\n <ImplicitUsings>enable</ImplicitUsings>\r\n <Nullable>enable</Nullable>");
});
}

Expand All @@ -307,7 +307,7 @@ public void CreateEmptyCSharpNet70ProjectInNewFormat()
string projectFileContent = GetProjectFileContent(solutionFolder, project);

projectFileContent.Should()
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net7.0</TargetFramework>\r\n <ImplicitUsings>enable</ImplicitUsings>\r\n <Nullable>enable</Nullable>\r\n </PropertyGroup>\r\n</Project>");
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net7.0</TargetFramework>\r\n <ImplicitUsings>enable</ImplicitUsings>\r\n <Nullable>enable</Nullable>");
});
}

Expand All @@ -323,7 +323,7 @@ public void CreateEmptyCSharpNet80ProjectInNewFormat()
string projectFileContent = GetProjectFileContent(solutionFolder, project);

projectFileContent.Should()
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net8.0</TargetFramework>\r\n <ImplicitUsings>enable</ImplicitUsings>\r\n <Nullable>enable</Nullable>\r\n </PropertyGroup>\r\n</Project>");
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net8.0</TargetFramework>\r\n <ImplicitUsings>enable</ImplicitUsings>\r\n <Nullable>enable</Nullable>");
});
}

Expand All @@ -339,7 +339,7 @@ public void CreateEmptyCSharpNet481ProjectInNewFormat()
string projectFileContent = GetProjectFileContent(solutionFolder, project);

projectFileContent.Should()
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net481</TargetFramework>\r\n <LangVersion>7.3</LangVersion>\r\n </PropertyGroup>\r\n</Project>");
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net481</TargetFramework>\r\n <LangVersion>7.3</LangVersion>");
});
}

Expand All @@ -355,7 +355,7 @@ public void CreateEmptyCSharpNet462ProjectInNewFormat()
string projectFileContent = GetProjectFileContent(solutionFolder, project);

projectFileContent.Should()
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net462</TargetFramework>\r\n <LangVersion>7.3</LangVersion>\r\n </PropertyGroup>\r\n</Project>");
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net462</TargetFramework>\r\n <LangVersion>7.3</LangVersion>");
});
}

Expand All @@ -371,7 +371,7 @@ public void CreateEmptyCSharpNet472ProjectInNewFormat()
string projectFileContent = GetProjectFileContent(solutionFolder, project);

projectFileContent.Should()
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net472</TargetFramework>\r\n <LangVersion>7.3</LangVersion>\r\n </PropertyGroup>\r\n</Project>");
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <TargetFramework>net472</TargetFramework>\r\n <LangVersion>7.3</LangVersion>");
});
}

Expand Down Expand Up @@ -403,7 +403,7 @@ public void CreateEmptyVbProjectInNewFormat()
string projectFileContent = GetProjectFileContent(solutionFolder, project);

projectFileContent.Should()
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <RootNamespace>ProjectName</RootNamespace>\r\n <TargetFramework>net462</TargetFramework>\r\n </PropertyGroup>\r\n</Project>");
.Contain("<Project Sdk=\"Microsoft.NET.Sdk\">\r\n <PropertyGroup>\r\n <RootNamespace>ProjectName</RootNamespace>\r\n <TargetFramework>net462</TargetFramework>");
});
}
}
Expand Down

0 comments on commit 7c22e2f

Please sign in to comment.