Skip to content

Commit

Permalink
update ls test for parent parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
checkymander committed Feb 16, 2024
1 parent 28b5595 commit fbeb505
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ public LsTests()
[TestMethod]
public void TestValidParentPath()
{
string path = string.Empty;
string path;
string parent;
if (OperatingSystem.IsWindows())
{
path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "drivers", "etc");
parent = "drivers";
}
else
{
path = Path.Combine("/", "etc");
parent = "";
}
Dictionary<string, string> parameters = new Dictionary<string, string>
{
Expand All @@ -56,7 +59,7 @@ public void TestValidParentPath()
((TestMessageManager)_messageManager).hasResponse.WaitOne();
string response = ((TestMessageManager)_messageManager).GetRecentOutput().Result;
FileBrowserTaskResponse fb = JsonSerializer.Deserialize<FileBrowserTaskResponse>(response);
Assert.AreEqual(fb.file_browser.parent_path, Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "drivers"));
Assert.AreEqual(fb.file_browser.parent_path, Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), parent));
}
[TestMethod]
public void TestGetFileListingLocal()
Expand Down

0 comments on commit fbeb505

Please sign in to comment.