Skip to content

Commit

Permalink
fix: unittest success on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
davhdavh committed Oct 27, 2023
1 parent 8129ef0 commit 7952fa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
Expand Down
3 changes: 3 additions & 0 deletions Catglobe.ResXFileCodeGenerator.Tests/SettingsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public void FileDefaults()
[InlineData(@"ProjectFolder\8 project.csproj", @"ProjectFolder\Path1.resx", "", "_8_project", "_8_project.Path1")]
[InlineData(@"ProjectFolder\8 project.csproj", @"ProjectFolder\SubFolder\Path1.resx", null, "SubFolder", "SubFolder.Path1")]
[InlineData(@"ProjectFolder\8 project.csproj", @"ProjectFolder\SubFolder\Path1.resx", "", "SubFolder", "SubFolder.Path1")]

public void FileSettings_RespectsEmptyRootNamespace(
string msBuildProjectFullPath,
string mainFile,
Expand All @@ -130,6 +131,8 @@ public void FileSettings_RespectsEmptyRootNamespace(
string expectedEmbeddedFilename
)
{
msBuildProjectFullPath = msBuildProjectFullPath.Replace('\\', Path.DirectorySeparatorChar);
mainFile = mainFile.Replace('\\', Path.DirectorySeparatorChar);
var fileOptions = FileOptions.Select(
file: new GroupedAdditionalFile(
mainFile: new AdditionalTextWithHash(new AdditionalTextStub(mainFile), Guid.NewGuid()),
Expand Down

0 comments on commit 7952fa5

Please sign in to comment.