Skip to content

Commit fefb137

Browse files
committed
fix test format
1 parent 03f062c commit fefb137

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Flow.Launcher.Test/Plugins/ExplorerTest.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,9 @@ public void GivenQueryWithFileTypeResult_WhenGetAutoComplete_ThenResultShouldBeE
400400
[TestCase(@"c:\foo", @"c:\foo", true)]
401401
[TestCase(@"C:\Foo\", @"c:\foo\", true)]
402402
[TestCase(@"c:\foo", @"c:\foo\", false)]
403-
public void PathEqualityComparatorEquality(string path1, string path2, bool expectedResult)
403+
public void GivenTwoPaths_WhenCompared_ThenShouldBeExpectedSameOrDifferent(string path1, string path2, bool expectedResult)
404404
{
405+
// Given
405406
var comparator = PathEqualityComparator.Instance;
406407
var result1 = new Result
407408
{
@@ -413,13 +414,16 @@ public void PathEqualityComparatorEquality(string path1, string path2, bool expe
413414
Title = Path.GetFileName(path2),
414415
SubTitle = path2
415416
};
417+
418+
// When, Then
416419
Assert.AreEqual(expectedResult, comparator.Equals(result1, result2));
417420
}
418421

419422
[TestCase(@"c:\foo\", @"c:\foo\")]
420423
[TestCase(@"C:\Foo\", @"c:\foo\")]
421-
public void PathEqualityComparatorHashCode(string path1, string path2)
424+
public void GivenTwoPaths_WhenComparedHasCode_ThenShouldBeSame(string path1, string path2)
422425
{
426+
// Given
423427
var comparator = PathEqualityComparator.Instance;
424428
var result1 = new Result
425429
{
@@ -431,8 +435,11 @@ public void PathEqualityComparatorHashCode(string path1, string path2)
431435
Title = Path.GetFileName(path2),
432436
SubTitle = path2
433437
};
438+
434439
var hash1 = comparator.GetHashCode(result1);
435440
var hash2 = comparator.GetHashCode(result2);
441+
442+
// When, Then
436443
Assert.IsTrue(hash1 == hash2);
437444
}
438445
}

0 commit comments

Comments
 (0)