|
1 |
| -using Flow.Launcher.Plugin.SharedCommands; |
| 1 | +using Flow.Launcher.Plugin.SharedCommands; |
2 | 2 | using NUnit.Framework;
|
3 | 3 |
|
4 | 4 | namespace Flow.Launcher.Test
|
@@ -33,21 +33,21 @@ public class FilesFoldersTest
|
33 | 33 | [TestCase(@"c:\foo", @"c:\foo\..\bar\baz", false)]
|
34 | 34 | [TestCase(@"c:\bar", @"c:\foo\..\bar\baz", true)]
|
35 | 35 | [TestCase(@"c:\barr", @"c:\foo\..\bar\baz", false)]
|
36 |
| - // Equality |
37 |
| - [TestCase(@"c:\foo", @"c:\foo", false)] |
38 |
| - [TestCase(@"c:\foo\", @"c:\foo", false)] |
39 |
| - [TestCase(@"c:\foo", @"c:\foo\", false)] |
40 | 36 | public void GivenTwoPaths_WhenCheckPathContains_ThenShouldBeExpectedResult(string parentPath, string path, bool expectedResult)
|
41 | 37 | {
|
42 | 38 | Assert.AreEqual(expectedResult, FilesFolders.PathContains(parentPath, path));
|
43 | 39 | }
|
44 | 40 |
|
| 41 | + // Equality |
| 42 | + [TestCase(@"c:\foo", @"c:\foo", false)] |
| 43 | + [TestCase(@"c:\foo\", @"c:\foo", false)] |
| 44 | + [TestCase(@"c:\foo", @"c:\foo\", false)] |
45 | 45 | [TestCase(@"c:\foo", @"c:\foo", true)]
|
46 | 46 | [TestCase(@"c:\foo\", @"c:\foo", true)]
|
47 | 47 | [TestCase(@"c:\foo", @"c:\foo\", true)]
|
48 |
| - public void GivenTwoPathsAreTheSame_WhenCheckPathContains_ThenShouldBeTrue(string parentPath, string path, bool expectedResult) |
| 48 | + public void GivenTwoPathsAreTheSame_WhenCheckPathContains_ThenShouldBeExpectedResult(string parentPath, string path, bool expectedResult) |
49 | 49 | {
|
50 |
| - Assert.AreEqual(expectedResult, FilesFolders.PathContains(parentPath, path, true)); |
| 50 | + Assert.AreEqual(expectedResult, FilesFolders.PathContains(parentPath, path, allowEqual: expectedResult)); |
51 | 51 | }
|
52 | 52 | }
|
53 | 53 | }
|
0 commit comments