Skip to content

Commit a62c1fa

Browse files
CopilotJusterZhu
andauthored
style: replace en dashes with hyphens in test comments
Agent-Logs-Url: https://github.com/GeneralLibrary/GeneralUpdate/sessions/6c694de5-ffd1-4c1e-bff3-6dc8faf754fe Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com>
1 parent 38fb698 commit a62c1fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/c#/DifferentialTest/Matchers/MatcherTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void DefaultCleanMatcher_ReturnsNull_WhenNewFileDoesNotExist()
185185
[Fact]
186186
public void DefaultCleanMatcher_ReturnsCorrectNode_WhenSameNameFilesExistInDifferentDirectories()
187187
{
188-
// Arrange two old files with the same name but different relative paths
188+
// Arrange - two old files with the same name but different relative paths
189189
var fileInRoot = Path.Combine(_testDirectory, "a.txt");
190190
var subDir = Path.Combine(_testDirectory, "sub");
191191
Directory.CreateDirectory(subDir);
@@ -198,7 +198,7 @@ public void DefaultCleanMatcher_ReturnsCorrectNode_WhenSameNameFilesExistInDiffe
198198
var oldFileRoot = new FileNode { Name = "a.txt", FullName = fileInRoot, RelativePath = "a.txt" };
199199
var oldFileSub = new FileNode { Name = "a.txt", FullName = fileInSub, RelativePath = "sub/a.txt" };
200200

201-
// oldFileRoot appears first in the list before the fix FirstOrDefault would
201+
// oldFileRoot appears first in the list - before the fix FirstOrDefault would
202202
// return oldFileRoot, then the RelativePath guard would return null, hiding oldFileSub.
203203
var leftNodes = new List<FileNode> { oldFileRoot, oldFileSub };
204204

@@ -207,7 +207,7 @@ public void DefaultCleanMatcher_ReturnsCorrectNode_WhenSameNameFilesExistInDiffe
207207
// Act
208208
var result = matcher.Match(newFile, leftNodes);
209209

210-
// Assert must find oldFileSub, not be tricked by oldFileRoot
210+
// Assert - must find oldFileSub, not be tricked by oldFileRoot
211211
Assert.NotNull(result);
212212
Assert.Same(oldFileSub, result);
213213
}

0 commit comments

Comments
 (0)