Naming fixes.

This commit is contained in:
2020-07-20 21:11:32 +01:00
parent c58c0fd1f8
commit 6220425ac6
525 changed files with 15675 additions and 15524 deletions

View File

@@ -36,23 +36,23 @@ namespace Aaru.Tests.Filters
[TestFixture]
public class LZip
{
static readonly byte[] ExpectedFile =
static readonly byte[] _expectedFile =
{
0x3f, 0x7b, 0x77, 0x3e, 0x52, 0x48, 0xd5, 0x26, 0xf4, 0xb1, 0xac, 0x15, 0xb2, 0xb3, 0x5f, 0x87
};
static readonly byte[] ExpectedContents =
static readonly byte[] _expectedContents =
{
0x18, 0x90, 0x5a, 0xf9, 0x83, 0xd8, 0x2b, 0xdd, 0x1a, 0xcc, 0x69, 0x75, 0x4f, 0x0f, 0x81, 0x5e
};
readonly string location;
readonly string _location;
public LZip() => location = Path.Combine(Consts.TestFilesRoot, "Filters", "lzip.lz");
public LZip() => _location = Path.Combine(Consts.TEST_FILES_ROOT, "Filters", "lzip.lz");
[Test]
public void CheckContents()
{
IFilter filter = new Aaru.Filters.LZip();
filter.Open(location);
filter.Open(_location);
Stream str = filter.GetDataForkStream();
byte[] data = new byte[1048576];
str.Read(data, 0, 1048576);
@@ -60,28 +60,28 @@ namespace Aaru.Tests.Filters
str.Dispose();
filter.Close();
Md5Context.Data(data, out byte[] result);
Assert.AreEqual(ExpectedContents, result);
Assert.AreEqual(_expectedContents, result);
}
[Test]
public void CheckCorrectFile()
{
byte[] result = Md5Context.File(location);
Assert.AreEqual(ExpectedFile, result);
byte[] result = Md5Context.File(_location);
Assert.AreEqual(_expectedFile, result);
}
[Test]
public void CheckFilterId()
{
IFilter filter = new Aaru.Filters.LZip();
Assert.AreEqual(true, filter.Identify(location));
Assert.AreEqual(true, filter.Identify(_location));
}
[Test]
public void Test()
{
IFilter filter = new Aaru.Filters.LZip();
filter.Open(location);
filter.Open(_location);
Assert.AreEqual(true, filter.IsOpened());
Assert.AreEqual(1048576, filter.GetDataForkLength());
Assert.AreNotEqual(null, filter.GetDataForkStream());