public void NavigateToServerFolderTest() { var path = ServerSettings.ServerDirectory; NavigateToServerFolder(path); var expectedList = ClientTests.ExpectedList(path, true); expectedList.Insert(0, new FileSystemEntry("..", ".", true)); CollectionAssert.AreEquivalent(expectedList, vm.ServerFoldersAndFiles); }
public void NavigateToClientFolderTest() { NavigateToClientFolder(downloadDir); Assert.AreEqual(downloadDir, vm.CurrentDownloadFolder); var expectedList = ClientTests.ExpectedList(downloadDir, false); expectedList.Insert(0, new FileSystemEntry("..", Directory.GetDirectoryRoot("."), true)); CollectionAssert.AreEquivalent(expectedList, vm.ClientFolders); }
public void ConnectTest() { var expectedList = ClientTests.ExpectedList(".", true); CollectionAssert.AreEquivalent(expectedList, vm.ServerFoldersAndFiles); }