Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public void ConnectTest()
        {
            var expectedList = ClientTests.ExpectedList(".", true);

            CollectionAssert.AreEquivalent(expectedList, vm.ServerFoldersAndFiles);
        }