Skip to content

Commit b13989d

Browse files
Fix compilation error in SolutionFile_OldParser_Tests.cs - use string literals instead of char literals
Co-authored-by: YuliiaKovalova <[email protected]>
1 parent ef4349c commit b13989d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Build.UnitTests/Construction/SolutionFile_OldParser_Tests.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,12 +2517,12 @@ public void AbsolutePathShouldUseForwardSlashesOnUnix()
25172517
project.ProjectName.ShouldBe("ProjectInSolutionRepro");
25182518

25192519
// The AbsolutePath should not contain backslashes on Unix systems
2520-
project.AbsolutePath.ShouldNotContain('\\', $"AbsolutePath '{project.AbsolutePath}' should not contain backslashes on Unix systems");
2520+
project.AbsolutePath.ShouldNotContain("\\");
25212521

25222522
// The AbsolutePath should contain forward slashes (unless it's just a filename)
25232523
if (project.AbsolutePath.Contains(Path.DirectorySeparatorChar))
25242524
{
2525-
project.AbsolutePath.ShouldContain('/', $"AbsolutePath '{project.AbsolutePath}' should contain forward slashes on Unix systems");
2525+
project.AbsolutePath.ShouldContain("/");
25262526
}
25272527
}
25282528

@@ -2557,7 +2557,7 @@ public void AbsolutePathShouldHandleUriLikeRelativePathsOnUnix()
25572557
// Even if the RelativePath looks like a URI, AbsolutePath should not contain backslashes on Unix
25582558
if (project.AbsolutePath.Contains('\\'))
25592559
{
2560-
project.AbsolutePath.ShouldNotContain('\\', $"AbsolutePath '{project.AbsolutePath}' should not contain backslashes on Unix systems, even for URI-like paths");
2560+
project.AbsolutePath.ShouldNotContain("\\");
25612561
}
25622562
}
25632563

@@ -2592,11 +2592,10 @@ public void AbsolutePathFixFilePathIntegrationTest()
25922592

25932593
// This test verifies that regardless of what happens in intermediate processing,
25942594
// the final AbsolutePath result never contains backslashes on Unix
2595-
project.AbsolutePath.ShouldNotContain('\\',
2596-
$"AbsolutePath '{project.AbsolutePath}' should not contain backslashes on Unix systems");
2595+
project.AbsolutePath.ShouldNotContain("\\");
25972596

25982597
// Verify that the path contains forward slashes as expected
2599-
project.AbsolutePath.ShouldContain('/');
2598+
project.AbsolutePath.ShouldContain("/");
26002599

26012600
// Verify that the path structure is still correct (should contain the subdirectory)
26022601
project.AbsolutePath.ShouldContain("Sub");

0 commit comments

Comments
 (0)