public void DeleteFromFile_Fail_FileDoesNotExist() { // Arrange Logger log = new Logger("Test_OperationManager1.log"); ConnectionAdapter conn = new ConnectionAdapter("http://localhost:8080/tfs/SzakdolgozatCollection", "Test_Project", log); ServerOperationManager serverOperation = new ServerOperationManager(conn, "Test_Project", "Test_Project", log); // Act bool result = serverOperation.DeleteFromFile("Something.csv"); // Assert Assert.AreEqual(false, result); }
public void DeleteFromFile_Fail_NoFileOnTheServer() { // Arrange Logger log = new Logger("Test_OperationManager2.log"); ConnectionAdapter conn = new ConnectionAdapter("http://*****:*****@"TestFiles\", fileName); bool result = serverOperation.DeleteFromFile(path); // Assert Assert.AreEqual(true, result); }