Skip to content

Commit 060d169

Browse files
committed
Fix whitespace issues due to codeql build fail
1 parent a0384b8 commit 060d169

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

tests/NLWebNet.Tests/Docker/DockerfileTests.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,58 +13,58 @@ public void Dockerfile_AllReferencedProjectFilesExist()
1313
// Arrange
1414
var rootPath = GetRepositoryRoot();
1515
var dockerfilePath = Path.Combine(rootPath, "deployment/docker/Dockerfile");
16-
16+
1717
Assert.IsTrue(File.Exists(dockerfilePath), $"Dockerfile not found at {dockerfilePath}");
18-
18+
1919
var dockerfileContent = File.ReadAllText(dockerfilePath);
20-
20+
2121
// Extract COPY commands that reference .csproj files
2222
var copyPattern = @"COPY \[""([^""]+\.csproj)"", ""[^""]+/""\]";
2323
var matches = Regex.Matches(dockerfileContent, copyPattern);
24-
24+
2525
// Act & Assert
2626
foreach (Match match in matches)
2727
{
2828
var projectPath = match.Groups[1].Value;
2929
var fullPath = Path.Combine(rootPath, projectPath);
30-
31-
Assert.IsTrue(File.Exists(fullPath),
30+
31+
Assert.IsTrue(File.Exists(fullPath),
3232
$"Project file referenced in Dockerfile does not exist: {projectPath} (Full path: {fullPath})");
3333
}
34-
34+
3535
// Verify we found at least the expected project files
36-
Assert.IsTrue(matches.Count >= 3,
36+
Assert.IsTrue(matches.Count >= 3,
3737
"Expected to find at least 3 project file references in Dockerfile (NLWebNet, Demo, Tests)");
3838
}
39-
39+
4040
[TestMethod]
4141
public void Dockerfile_DoesNotReferenceAspireHostProject()
4242
{
4343
// Arrange
4444
var rootPath = GetRepositoryRoot();
4545
var dockerfilePath = Path.Combine(rootPath, "deployment/docker/Dockerfile");
46-
46+
4747
Assert.IsTrue(File.Exists(dockerfilePath), $"Dockerfile not found at {dockerfilePath}");
48-
48+
4949
var dockerfileContent = File.ReadAllText(dockerfilePath);
50-
50+
5151
// Act & Assert
52-
Assert.IsFalse(dockerfileContent.Contains("AspireHost"),
52+
Assert.IsFalse(dockerfileContent.Contains("AspireHost"),
5353
"Dockerfile should not contain references to AspireHost project");
54-
Assert.IsFalse(dockerfileContent.Contains("NLWebNet.AspireHost.csproj"),
54+
Assert.IsFalse(dockerfileContent.Contains("NLWebNet.AspireHost.csproj"),
5555
"Dockerfile should not contain references to NLWebNet.AspireHost.csproj");
5656
}
57-
57+
5858
private static string GetRepositoryRoot()
5959
{
6060
var currentDirectory = Directory.GetCurrentDirectory();
6161
var directory = new DirectoryInfo(currentDirectory);
62-
62+
6363
while (directory != null && !File.Exists(Path.Combine(directory.FullName, "NLWebNet.sln")))
6464
{
6565
directory = directory.Parent;
6666
}
67-
67+
6868
Assert.IsNotNull(directory, "Could not find repository root (NLWebNet.sln not found)");
6969
return directory.FullName;
7070
}

0 commit comments

Comments
 (0)