public void ReturnTheFullPathOfTheBackupFile_WhenSourceFileExists() { // Arrange string expected = @"E:\Pst Backup\Pst Files\Année 2008.pst"; string actual = String.Empty; // Act _clientDb.RegisterNewPstFile(1, expected, expected + ".partial"); Assert.IsTrue(_clientDb.IsPstFileRegistered(expected)); actual = _clientDb.GetBackupFilePath(expected); // Assert Assert.AreEqual(expected + ".partial", actual, true); }
public void RenameTheBackupFile_WhenSourceFileExists() { // Arrange string pstFile = @"E:\Pst Backup\Pst Files\Année 2008.pst"; string expectedBackupFile = @"\\akio9901lns\Pst Backup\Pst Files\Année 2008.pst"; string actual = @"F:\Pst Backup\Pst Files\Année 2008.pst"; // Act _clientDb.RegisterNewPstFile(1, pstFile, actual); Assert.AreEqual(actual, _clientDb.GetBackupFilePath(pstFile), true); _clientDb.RenameBackupFile(pstFile, expectedBackupFile); // Assert Assert.AreEqual(expectedBackupFile, _clientDb.GetBackupFilePath(pstFile), true); }