Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2021-05-14 23:21:41 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2021-05-15 04:34:52 +0300
commit53621c984da5ac4243e0f84a94d77f131ed70257 (patch)
treeecb346860b61e3fccd31de433770876d1747ca12 /Duplicati/UnitTest/ProblematicPathTests.cs
parent8d99be95d86b7a8dc43586b5b96fc8e5389dda26 (diff)
Simplify verification of restored file in test.
Diffstat (limited to 'Duplicati/UnitTest/ProblematicPathTests.cs')
-rw-r--r--Duplicati/UnitTest/ProblematicPathTests.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/Duplicati/UnitTest/ProblematicPathTests.cs b/Duplicati/UnitTest/ProblematicPathTests.cs
index e470f67c3..be7aed09c 100644
--- a/Duplicati/UnitTest/ProblematicPathTests.cs
+++ b/Duplicati/UnitTest/ProblematicPathTests.cs
@@ -282,15 +282,7 @@ namespace Duplicati.UnitTest
}
string restoreFilePath = SystemIO.IO_OS.PathCombine(this.RESTOREFOLDER, pathComponent);
- Assert.IsTrue(SystemIO.IO_OS.FileExists(restoreFilePath));
-
- MemoryStream restoredStream = new MemoryStream();
- using (FileStream fileStream = SystemIO.IO_OS.FileOpenRead(restoreFilePath))
- {
- Utility.CopyStream(fileStream, restoredStream);
- }
-
- Assert.AreEqual(fileBytes, restoredStream.ToArray());
+ TestUtils.AssertFilesAreEqual(filePath, restoreFilePath, true, pathComponent);
}
}
} \ No newline at end of file