mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add tests for GetPreviousDirectory method
This commit is contained in:
parent
2feba97f56
commit
436cfe2e2b
1 changed files with 17 additions and 0 deletions
|
|
@ -37,6 +37,10 @@ namespace Flow.Launcher.Test.Plugins
|
|||
|
||||
private bool MethodIndexExistsReturnsFalse(string dummyString) => false;
|
||||
|
||||
private bool LocationExistsReturnsTrue(string dummyString) => true;
|
||||
|
||||
private bool LocationNotExistReturnsFalse(string dummyString) => false;
|
||||
|
||||
[TestCase("C:\\Dropbox", "directory='file:C:\\Dropbox'")]
|
||||
public void GivenWindowsIndexSearch_WhenProvidedFolderPath_ThenQueryWhereRestrictionsShouldUseDirectoryString(string path, string expectedString)
|
||||
{
|
||||
|
|
@ -195,6 +199,19 @@ namespace Flow.Launcher.Test.Plugins
|
|||
$"Actual check result is {result} {Environment.NewLine}");
|
||||
|
||||
}
|
||||
|
||||
[TestCase(@"C:\Dropbox\Drop", @"C:\Dropbox")]
|
||||
[TestCase(@"C:\Dropbox\Drop\App", @"C:\Dropbox\Drop")]
|
||||
public void GivenAPartialPath_WhenPreviousLevelDirectoryExists_ThenShouldReturnThePreviousDirectoryPathString()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[TestCase(@"C:\Dropbox\Drop", "")]
|
||||
public void GivenAPartialPath_WhenPreviousLevelDirectoryNotExists_ThenShouldReturnEmptyString()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void GivenWindowsIndexSearch_WhenSearchPatternHotKeyIsSearchAll_ThenQueryWhereRestrictionsShouldUseScopeString() { }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue