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

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