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

@@ -53,7 +53,7 @@ public class Sha1
{
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);
@@ -66,7 +66,7 @@ public class Sha1
[Test]
public void EmptyFile()
{
byte[] result = Sha1Context.File(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "empty"));
byte[] result = Sha1Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
result.Should().BeEquivalentTo(_expectedEmpty);
}
@@ -75,7 +75,7 @@ public class Sha1
{
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);
@@ -92,7 +92,7 @@ public class Sha1
{
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);
@@ -105,7 +105,7 @@ public class Sha1
[Test]
public void RandomFile()
{
byte[] result = Sha1Context.File(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "random"));
byte[] result = Sha1Context.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
result.Should().BeEquivalentTo(_expectedRandom);
}
@@ -114,7 +114,7 @@ public class Sha1
{
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);