Use proper mount point for test files.

This commit is contained in:
2022-11-13 05:48:58 +00:00
parent 8d551c2d2a
commit 8b5e23a693
330 changed files with 413 additions and 411 deletions

View File

@@ -57,7 +57,7 @@ public class Sha512
{
var data = new byte[1048576];
var fs = new FileStream(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "empty"), FileMode.Open,
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
FileAccess.Read);
fs.Read(data, 0, 1048576);
@@ -70,7 +70,7 @@ public class Sha512
[Test]
public void EmptyFile()
{
byte[] result = Sha512Context.File(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "empty"));
byte[] result = Sha512Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
result.Should().BeEquivalentTo(_expectedEmpty);
}
@@ -79,7 +79,7 @@ public class Sha512
{
var data = new byte[1048576];
var fs = new FileStream(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "empty"), FileMode.Open,
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"), FileMode.Open,
FileAccess.Read);
fs.Read(data, 0, 1048576);
@@ -96,7 +96,7 @@ public class Sha512
{
var data = new byte[1048576];
var fs = new FileStream(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "random"), FileMode.Open,
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
FileAccess.Read);
fs.Read(data, 0, 1048576);
@@ -109,7 +109,7 @@ public class Sha512
[Test]
public void RandomFile()
{
byte[] result = Sha512Context.File(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "random"));
byte[] result = Sha512Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
Assert.AreEqual(_expectedRandom, result);
}
@@ -118,7 +118,7 @@ public class Sha512
{
var data = new byte[1048576];
var fs = new FileStream(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "random"), FileMode.Open,
var fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"), FileMode.Open,
FileAccess.Read);
fs.Read(data, 0, 1048576);