mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: All refactor in DiscImageChef.Tests.
This commit is contained in:
@@ -33,20 +33,20 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class CRC16
|
public class Crc16
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty = {0x00, 0x00};
|
static readonly byte[] ExpectedEmpty = {0x00, 0x00};
|
||||||
static readonly byte[] ExpectedRandom = {0x2d, 0x6d};
|
static readonly byte[] ExpectedRandom = {0x2d, 0x6d};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC16EmptyFile()
|
public void Crc16EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc16Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Crc16Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC16EmptyData()
|
public void Crc16EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -59,7 +59,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC16EmptyInstance()
|
public void Crc16EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -75,14 +75,14 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC16RandomFile()
|
public void Crc16RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc16Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Crc16Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC16RandomData()
|
public void Crc16RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -95,7 +95,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC16RandomInstance()
|
public void Crc16RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -33,20 +33,20 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class CRC32
|
public class Crc32
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty = {0xa7, 0x38, 0xea, 0x1c};
|
static readonly byte[] ExpectedEmpty = {0xa7, 0x38, 0xea, 0x1c};
|
||||||
static readonly byte[] ExpectedRandom = {0x2b, 0x6e, 0x68, 0x54};
|
static readonly byte[] ExpectedRandom = {0x2b, 0x6e, 0x68, 0x54};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC32EmptyFile()
|
public void Crc32EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc32Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Crc32Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC32EmptyData()
|
public void Crc32EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -59,7 +59,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC32EmptyInstance()
|
public void Crc32EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -75,14 +75,14 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC32RandomFile()
|
public void Crc32RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc32Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Crc32Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC32RandomData()
|
public void Crc32RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -95,7 +95,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC32RandomInstance()
|
public void Crc32RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -33,20 +33,20 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class CRC64
|
public class Crc64
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty = {0x60, 0x6b, 0x70, 0xa2, 0x3e, 0xba, 0xf6, 0xc2};
|
static readonly byte[] ExpectedEmpty = {0x60, 0x6b, 0x70, 0xa2, 0x3e, 0xba, 0xf6, 0xc2};
|
||||||
static readonly byte[] ExpectedRandom = {0xbf, 0x09, 0x99, 0x2c, 0xc5, 0xed, 0xe3, 0x8e};
|
static readonly byte[] ExpectedRandom = {0xbf, 0x09, 0x99, 0x2c, 0xc5, 0xed, 0xe3, 0x8e};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC64EmptyFile()
|
public void Crc64EmptyFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc64Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
byte[] result = Crc64Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(ExpectedEmpty, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC64EmptyData()
|
public void Crc64EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -59,7 +59,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC64EmptyInstance()
|
public void Crc64EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -75,14 +75,14 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC64RandomFile()
|
public void Crc64RandomFile()
|
||||||
{
|
{
|
||||||
byte[] result = Crc64Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
byte[] result = Crc64Context.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(ExpectedRandom, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC64RandomData()
|
public void Crc64RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -95,7 +95,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void CRC64RandomInstance()
|
public void Crc64RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MD5
|
public class Md5
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty =
|
static readonly byte[] ExpectedEmpty =
|
||||||
{0xb6, 0xd8, 0x1b, 0x36, 0x0a, 0x56, 0x72, 0xd8, 0x0c, 0x27, 0x43, 0x0f, 0x39, 0x15, 0x3e, 0x2c};
|
{0xb6, 0xd8, 0x1b, 0x36, 0x0a, 0x56, 0x72, 0xd8, 0x0c, 0x27, 0x43, 0x0f, 0x39, 0x15, 0x3e, 0x2c};
|
||||||
@@ -41,7 +41,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
{0xd7, 0x8f, 0x0e, 0xec, 0x41, 0x7b, 0xe3, 0x86, 0x21, 0x9b, 0x21, 0xb7, 0x00, 0x04, 0x4b, 0x95};
|
{0xd7, 0x8f, 0x0e, 0xec, 0x41, 0x7b, 0xe3, 0x86, 0x21, 0x9b, 0x21, 0xb7, 0x00, 0x04, 0x4b, 0x95};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void MD5EmptyFile()
|
public void Md5EmptyFile()
|
||||||
{
|
{
|
||||||
Md5Context ctx = new Md5Context();
|
Md5Context ctx = new Md5Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -50,7 +50,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void MD5EmptyData()
|
public void Md5EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -65,7 +65,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void MD5EmptyInstance()
|
public void Md5EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -81,7 +81,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void MD5RandomFile()
|
public void Md5RandomFile()
|
||||||
{
|
{
|
||||||
Md5Context ctx = new Md5Context();
|
Md5Context ctx = new Md5Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -90,7 +90,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void MD5RandomData()
|
public void Md5RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -105,7 +105,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void MD5RandomInstance()
|
public void Md5RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class RIPEMD160
|
public class Ripemd160
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty =
|
static readonly byte[] ExpectedEmpty =
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
};
|
};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void RIPEMD160EmptyFile()
|
public void Ripemd160EmptyFile()
|
||||||
{
|
{
|
||||||
Ripemd160Context ctx = new Ripemd160Context();
|
Ripemd160Context ctx = new Ripemd160Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -56,7 +56,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void RIPEMD160EmptyData()
|
public void Ripemd160EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -71,7 +71,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void RIPEMD160EmptyInstance()
|
public void Ripemd160EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void RIPEMD160RandomFile()
|
public void Ripemd160RandomFile()
|
||||||
{
|
{
|
||||||
Ripemd160Context ctx = new Ripemd160Context();
|
Ripemd160Context ctx = new Ripemd160Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -96,7 +96,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void RIPEMD160RandomData()
|
public void Ripemd160RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -111,7 +111,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void RIPEMD160RandomInstance()
|
public void Ripemd160RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SHA1
|
public class Sha1
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty =
|
static readonly byte[] ExpectedEmpty =
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
};
|
};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA1EmptyFile()
|
public void Sha1EmptyFile()
|
||||||
{
|
{
|
||||||
Sha1Context ctx = new Sha1Context();
|
Sha1Context ctx = new Sha1Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -56,7 +56,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA1EmptyData()
|
public void Sha1EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -71,7 +71,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA1EmptyInstance()
|
public void Sha1EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA1RandomFile()
|
public void Sha1RandomFile()
|
||||||
{
|
{
|
||||||
Sha1Context ctx = new Sha1Context();
|
Sha1Context ctx = new Sha1Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -96,7 +96,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA1RandomData()
|
public void Sha1RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -111,7 +111,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA1RandomInstance()
|
public void Sha1RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SHA256
|
public class Sha256
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty =
|
static readonly byte[] ExpectedEmpty =
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
};
|
};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA256EmptyFile()
|
public void Sha256EmptyFile()
|
||||||
{
|
{
|
||||||
Sha256Context ctx = new Sha256Context();
|
Sha256Context ctx = new Sha256Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -56,7 +56,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA256EmptyData()
|
public void Sha256EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -71,7 +71,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA256EmptyInstance()
|
public void Sha256EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA256RandomFile()
|
public void Sha256RandomFile()
|
||||||
{
|
{
|
||||||
Sha256Context ctx = new Sha256Context();
|
Sha256Context ctx = new Sha256Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -96,7 +96,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA256RandomData()
|
public void Sha256RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -111,7 +111,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA256RandomInstance()
|
public void Sha256RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SHA384
|
public class Sha384
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty =
|
static readonly byte[] ExpectedEmpty =
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
};
|
};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA384EmptyFile()
|
public void Sha384EmptyFile()
|
||||||
{
|
{
|
||||||
Sha384Context ctx = new Sha384Context();
|
Sha384Context ctx = new Sha384Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -58,7 +58,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA384EmptyData()
|
public void Sha384EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -73,7 +73,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA384EmptyInstance()
|
public void Sha384EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -89,7 +89,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA384RandomFile()
|
public void Sha384RandomFile()
|
||||||
{
|
{
|
||||||
Sha384Context ctx = new Sha384Context();
|
Sha384Context ctx = new Sha384Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -98,7 +98,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA384RandomData()
|
public void Sha384RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -113,7 +113,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA384RandomInstance()
|
public void Sha384RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Checksums
|
namespace DiscImageChef.Tests.Checksums
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SHA512
|
public class Sha512
|
||||||
{
|
{
|
||||||
static readonly byte[] ExpectedEmpty =
|
static readonly byte[] ExpectedEmpty =
|
||||||
{
|
{
|
||||||
@@ -51,7 +51,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
};
|
};
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA512EmptyFile()
|
public void Sha512EmptyFile()
|
||||||
{
|
{
|
||||||
Sha512Context ctx = new Sha512Context();
|
Sha512Context ctx = new Sha512Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -60,7 +60,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA512EmptyData()
|
public void Sha512EmptyData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA512EmptyInstance()
|
public void Sha512EmptyInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"), FileMode.Open,
|
||||||
@@ -91,7 +91,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA512RandomFile()
|
public void Sha512RandomFile()
|
||||||
{
|
{
|
||||||
Sha512Context ctx = new Sha512Context();
|
Sha512Context ctx = new Sha512Context();
|
||||||
ctx.Init();
|
ctx.Init();
|
||||||
@@ -100,7 +100,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA512RandomData()
|
public void Sha512RandomData()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
@@ -115,7 +115,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SHA512RandomInstance()
|
public void Sha512RandomInstance()
|
||||||
{
|
{
|
||||||
byte[] data = new byte[1048576];
|
byte[] data = new byte[1048576];
|
||||||
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
FileStream fs = new FileStream(Path.Combine(Consts.TestFilesRoot, "checksums", "random"), FileMode.Open,
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SpamSum
|
public class SpamSum
|
||||||
{
|
{
|
||||||
static readonly string ExpectedEmpty = "3::";
|
const string EXPECTED_EMPTY = "3::";
|
||||||
static readonly string ExpectedRandom = "24576:3dvzuAsHTQ16pc7O1Q/gS9qze+Swwn9s6IX:8/TQQpaVqze+JN6IX";
|
const string EXPECTED_RANDOM = "24576:3dvzuAsHTQ16pc7O1Q/gS9qze+Swwn9s6IX:8/TQQpaVqze+JN6IX";
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void SpamSumEmptyData()
|
public void SpamSumEmptyData()
|
||||||
@@ -47,9 +47,8 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
fs.Close();
|
fs.Close();
|
||||||
fs.Dispose();
|
fs.Dispose();
|
||||||
SpamSumContext ctx = new SpamSumContext();
|
string result = SpamSumContext.Data(data, out _);
|
||||||
string result = SpamSumContext.Data(data, out byte[] tmp);
|
Assert.AreEqual(EXPECTED_EMPTY, result);
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@@ -65,7 +64,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
ctx.Init();
|
ctx.Init();
|
||||||
ctx.Update(data);
|
ctx.Update(data);
|
||||||
string result = ctx.End();
|
string result = ctx.End();
|
||||||
Assert.AreEqual(ExpectedEmpty, result);
|
Assert.AreEqual(EXPECTED_EMPTY, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@@ -77,9 +76,8 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
fs.Read(data, 0, 1048576);
|
fs.Read(data, 0, 1048576);
|
||||||
fs.Close();
|
fs.Close();
|
||||||
fs.Dispose();
|
fs.Dispose();
|
||||||
SpamSumContext ctx = new SpamSumContext();
|
string result = SpamSumContext.Data(data, out _);
|
||||||
string result = SpamSumContext.Data(data, out byte[] tmp);
|
Assert.AreEqual(EXPECTED_RANDOM, result);
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@@ -95,7 +93,7 @@ namespace DiscImageChef.Tests.Checksums
|
|||||||
ctx.Init();
|
ctx.Init();
|
||||||
ctx.Update(data);
|
ctx.Update(data);
|
||||||
string result = ctx.End();
|
string result = ctx.End();
|
||||||
Assert.AreEqual(ExpectedRandom, result);
|
Assert.AreEqual(EXPECTED_RANDOM, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Devices
|
namespace DiscImageChef.Tests.Devices
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class LS120
|
public class Ls120
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"ls120.bin.lz", "mf2dd.bin.lz", "mf2hd.bin.lz"};
|
readonly string[] testfiles = {"ls120.bin.lz", "mf2dd.bin.lz", "mf2hd.bin.lz"};
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ADFS
|
public class Adfs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(bootable[i], fs.XmlFSType.Bootable, testfiles[i]);
|
Assert.AreEqual(bootable[i], fs.XmlFSType.Bootable, testfiles[i]);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AFFS
|
public class Affs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz"};
|
readonly string[] testfiles = {"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz"};
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AFFS2_RDB
|
public class Affs2Rdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"amigaos_4.0.vdi.lz"};
|
readonly string[] testfiles = {"amigaos_4.0.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga FFS2", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga FFS2", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AFFS_MBR
|
public class AffsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AFFS_MBR_RDB
|
public class AffsMbrRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AFFS_RDB
|
public class AffsRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga FFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AFS
|
public class Afs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AFS_MBR
|
public class AfsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AOFS
|
public class Aofs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz"};
|
readonly string[] testfiles = {"amigaos_3.9.adf.lz", "amigaos_3.9_intl.adf.lz"};
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AOFS_MBR
|
public class AofsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AOFS_MBR_RDB
|
public class AofsMbrRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
readonly string[] testfiles = {"aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class AOFS_RDB
|
public class AofsRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{"amigaos_3.9.vdi.lz", "amigaos_3.9_intl.vdi.lz", "aros.vdi.lz", "aros_intl.vdi.lz"};
|
{"amigaos_3.9.vdi.lz", "amigaos_3.9_intl.vdi.lz", "aros.vdi.lz", "aros_intl.vdi.lz"};
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Amiga OFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class Atheos_MBR
|
public class AtheosMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"syllable_0.6.7.vdi.lz"};
|
readonly string[] testfiles = {"syllable_0.6.7.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("AtheOS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("AtheOS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class BeFS
|
public class BeFs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"beos_r3.1.img.lz", "beos_r4.5.img.lz"};
|
readonly string[] testfiles = {"beos_r3.1.img.lz", "beos_r4.5.img.lz"};
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(mediatypes[i], image.ImageInfo.MediaType, testfiles[i]);
|
Assert.AreEqual(mediatypes[i], image.ImageInfo.MediaType, testfiles[i]);
|
||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.BeFS();
|
Filesystem fs = new BeFS();
|
||||||
Partition wholePart = new Partition
|
Partition wholePart = new Partition
|
||||||
{
|
{
|
||||||
Name = "Whole device",
|
Name = "Whole device",
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class BeFS_APM
|
public class BeFsApm
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz"};
|
readonly string[] testfiles = {"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz"};
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.BeFS();
|
Filesystem fs = new BeFS();
|
||||||
int part = -1;
|
int part = -1;
|
||||||
for(int j = 0; j < partitions.Count; j++)
|
for(int j = 0; j < partitions.Count; j++)
|
||||||
if(partitions[j].Type == "Be_BFS")
|
if(partitions[j].Type == "Be_BFS")
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class BeFS_GPT
|
public class BeFsGpt
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"haiku_hrev51259.vdi.lz"};
|
readonly string[] testfiles = {"haiku_hrev51259.vdi.lz"};
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.BeFS();
|
Filesystem fs = new BeFS();
|
||||||
int part = -1;
|
int part = -1;
|
||||||
for(int j = 0; j < partitions.Count; j++)
|
for(int j = 0; j < partitions.Count; j++)
|
||||||
if(partitions[j].Type == "Haiku BFS")
|
if(partitions[j].Type == "Haiku BFS")
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class BeFS_MBR
|
public class BeFsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz", "haiku_hrev51259.vdi.lz", "syllable_0.6.7.vdi.lz"};
|
{"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz", "haiku_hrev51259.vdi.lz", "syllable_0.6.7.vdi.lz"};
|
||||||
@@ -67,7 +67,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.BeFS();
|
Filesystem fs = new BeFS();
|
||||||
int part = -1;
|
int part = -1;
|
||||||
for(int j = 0; j < partitions.Count; j++)
|
for(int j = 0; j < partitions.Count; j++)
|
||||||
if(partitions[j].Type == "0xEB")
|
if(partitions[j].Type == "0xEB")
|
||||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class COHERENT
|
public class Coherent
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class COHERENT_MBR
|
public class CoherentMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"coherentunix_4.2.10.vdi.lz"};
|
readonly string[] testfiles = {"coherentunix_4.2.10.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DTFS
|
public class Dtfs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class DTFS_MBR
|
public class DtfsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class EAFS
|
public class Eafs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class EAFS_MBR
|
public class EafsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class F2FS
|
public class F2Fs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
PartitionPlugin parts = new MBR();
|
PartitionPlugin parts = new MBR();
|
||||||
Assert.AreEqual(true, parts.GetInformation(image, out List<Partition> partitions, 0), testfiles[i]);
|
Assert.AreEqual(true, parts.GetInformation(image, out List<Partition> partitions, 0), testfiles[i]);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.F2FS();
|
Filesystem fs = new F2FS();
|
||||||
int part = -1;
|
int part = -1;
|
||||||
for(int j = 0; j < partitions.Count; j++)
|
for(int j = 0; j < partitions.Count; j++)
|
||||||
if(partitions[j].Type == "0x83")
|
if(partitions[j].Type == "0x83")
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("F2FS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("F2FS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT12
|
public class Fat12
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -1724,7 +1724,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT12_APM
|
public class Fat12Apm
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT12_GPT
|
public class Fat12Gpt
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT12_MBR
|
public class Fat12Mbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -138,7 +138,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new FAT();
|
Filesystem fs = new FAT();
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[0], out string information);
|
fs.GetInformation(image, partitions[0], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT12", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT16
|
public class Fat16
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -131,7 +131,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT16_APM
|
public class Fat16Apm
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT16_Atari
|
public class Fat16Atari
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"tos_1.04.vdi.lz", "tos_1.04_small.vdi.lz"};
|
readonly string[] testfiles = {"tos_1.04.vdi.lz", "tos_1.04_small.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT16_GPT
|
public class Fat16Gpt
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT16_MBR
|
public class Fat16Mbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -140,7 +140,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new FAT();
|
Filesystem fs = new FAT();
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[0], out string information);
|
fs.GetInformation(image, partitions[0], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT16_RDB
|
public class Fat16Rdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"amigaos_3.9.vdi.lz"};
|
readonly string[] testfiles = {"amigaos_3.9.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT16", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT32_APM
|
public class Fat32Apm
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT32_GPT
|
public class Fat32Gpt
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
readonly string[] testfiles = {"macosx_10.11.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class FAT32_MBR
|
public class Fat32Mbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -104,7 +104,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new FAT();
|
Filesystem fs = new FAT();
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[0], out string information);
|
fs.GetInformation(image, partitions[0], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("FAT32", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HAMMER_MBR
|
public class HammerMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"dflybsd_3.6.1.vdi.lz", "dflybsd_4.0.5.vdi.lz"};
|
readonly string[] testfiles = {"dflybsd_3.6.1.vdi.lz", "dflybsd_4.0.5.vdi.lz"};
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HAMMER", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HAMMER", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFS
|
public class Hfs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFSPlus_APM
|
public class HfsPlusApm
|
||||||
{
|
{
|
||||||
// Missing Darwin 1.4.1
|
// Missing Darwin 1.4.1
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
@@ -113,7 +113,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFSPlus_GPT
|
public class HfsPlusGpt
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz"};
|
readonly string[] testfiles = {"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
// Mising Darwin 6.0.2 wrapped
|
// Mising Darwin 6.0.2 wrapped
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFSPlus_MBR
|
public class HfsPlusMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFS+", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFSX_APM
|
public class HfsxApm
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFSX_GPT
|
public class HfsxGpt
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz"};
|
readonly string[] testfiles = {"macosx_10.11.vdi.lz", "macosx_10.11_journal.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFSX_MBR
|
public class HfsxMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -84,7 +84,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFSX", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFS_APM
|
public class HfsApm
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -118,7 +118,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFS_CDROM
|
public class HfsCdrom
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFS_MBR
|
public class HfsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -81,7 +81,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HFS_RDB
|
public class HfsRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"amigaos_3.9.vdi.lz"};
|
readonly string[] testfiles = {"amigaos_3.9.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HPFS
|
public class Hpfs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -87,9 +87,9 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.HPFS();
|
Filesystem fs = new HPFS();
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[0]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[0], out string information);
|
fs.GetInformation(image, partitions[0], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("HPFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("HPFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HTFS
|
public class Htfs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class HTFS_MBR
|
public class HtfsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
readonly string[] testfiles = {"scoopenserver_5.0.7hw.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ISO9660
|
public class Iso9660
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -134,7 +134,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("ISO9660", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("ISO9660", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class JFS2
|
public class Jfs2
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"linux.vdi.lz", "linux_caseinsensitive.vdi.lz"};
|
readonly string[] testfiles = {"linux.vdi.lz", "linux_caseinsensitive.vdi.lz"};
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("JFS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("JFS filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class LFS_MBR
|
public class LfsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"netbsd_1.6.vdi.lz"};
|
readonly string[] testfiles = {"netbsd_1.6.vdi.lz"};
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
}
|
}
|
||||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("LFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("LFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class LisaFS
|
public class LisaFs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -99,7 +99,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("LisaFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("LisaFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Locus filesystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Locus filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MFS
|
public class Mfs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -85,7 +85,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("MFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("MFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MINIXv1
|
public class MinixV1
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MINIXv1_MBR
|
public class MinixV1Mbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"linux.vdi.lz", "minix_3.1.2a.vdi.lz"};
|
readonly string[] testfiles = {"linux.vdi.lz", "minix_3.1.2a.vdi.lz"};
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MINIXv2
|
public class MinixV2
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MINIXv2_MBR
|
public class MinixV2Mbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"minix_3.1.2a.vdi.lz"};
|
readonly string[] testfiles = {"minix_3.1.2a.vdi.lz"};
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MINIXv3
|
public class MinixV3
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -78,7 +78,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class MINIXv3_MBR
|
public class MinixV3Mbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"minix_3.1.2a.vdi.lz"};
|
readonly string[] testfiles = {"minix_3.1.2a.vdi.lz"};
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class NILFS2
|
public class Nilfs2
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.NILFS2();
|
Filesystem fs = new NILFS2();
|
||||||
int part = -1;
|
int part = -1;
|
||||||
for(int j = 0; j < partitions.Count; j++)
|
for(int j = 0; j < partitions.Count; j++)
|
||||||
if(partitions[j].Type == "0x83")
|
if(partitions[j].Type == "0x83")
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("NILFS2 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("NILFS2 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class NTFS_GPT
|
public class NtfsGpt
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"haiku_hrev51259.vdi.lz"};
|
readonly string[] testfiles = {"haiku_hrev51259.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("NTFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("NTFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class NTFS_MBR
|
public class NtfsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -89,7 +89,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("NTFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("NTFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class NWFS386
|
public class Nwfs386
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"netware_3.12.vdi.lz"};
|
readonly string[] testfiles = {"netware_3.12.vdi.lz"};
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
}
|
}
|
||||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("NWFS386", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("NWFS386", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class OCFS2
|
public class Ocfs2
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"linux.vdi.lz"};
|
readonly string[] testfiles = {"linux.vdi.lz"};
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
}
|
}
|
||||||
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
Assert.AreNotEqual(-1, part, string.Format("Partition not found on {0}", testfiles[i]));
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("OCFS2", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("OCFS2", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class PFS3_RDB
|
public class Pfs3Rdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"uae.vdi.lz"};
|
readonly string[] testfiles = {"uae.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("PFS v3", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("PFS v3", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ProDOS_APM
|
public class ProdosApm
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -85,7 +85,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("ProDOS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("ProDOS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class QNX4
|
public class Qnx4
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{"qnx_4.24_dsdd.img.lz", "qnx_4.24_dshd.img.lz", "qnx_4.24_mf2dd.img.lz", "qnx_4.24_mf2hd.img.lz"};
|
{"qnx_4.24_dsdd.img.lz", "qnx_4.24_dshd.img.lz", "qnx_4.24_mf2dd.img.lz", "qnx_4.24_mf2hd.img.lz"};
|
||||||
@@ -65,7 +65,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(mediatypes[i], image.ImageInfo.MediaType, testfiles[i]);
|
Assert.AreEqual(mediatypes[i], image.ImageInfo.MediaType, testfiles[i]);
|
||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.QNX4();
|
Filesystem fs = new QNX4();
|
||||||
Partition wholePart = new Partition
|
Partition wholePart = new Partition
|
||||||
{
|
{
|
||||||
Name = "Whole device",
|
Name = "Whole device",
|
||||||
@@ -73,7 +73,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("QNX4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("QNX4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class QNX4_MBR
|
public class Qnx4Mbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"qnx_4.24.vdi.lz"};
|
readonly string[] testfiles = {"qnx_4.24.vdi.lz"};
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
List<Partition> partitions = Core.Partitions.GetAll(image);
|
List<Partition> partitions = Core.Partitions.GetAll(image);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.QNX4();
|
Filesystem fs = new QNX4();
|
||||||
int part = -1;
|
int part = -1;
|
||||||
for(int j = 0; j < partitions.Count; j++)
|
for(int j = 0; j < partitions.Count; j++)
|
||||||
if(partitions[j].Type == "0x4D")
|
if(partitions[j].Type == "0x4D")
|
||||||
@@ -73,7 +73,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("QNX4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("QNX4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ReFS_MBR
|
public class ReFsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"win10.vdi.lz"};
|
readonly string[] testfiles = {"win10.vdi.lz"};
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
/*
|
/*
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.ReFS();
|
Filesystem fs = new DiscImageChef.Filesystems.ReFS();
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("ReFS", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("ReFS", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(reiserversion[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(reiserversion[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("Reiser 4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("Reiser 4 filesystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SFS_MBR
|
public class SfsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"aros.vdi.lz"};
|
readonly string[] testfiles = {"aros.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SFS_MBR_RDB
|
public class SfsMbrRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"aros.vdi.lz"};
|
readonly string[] testfiles = {"aros.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SFS_RDB
|
public class SfsRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"uae.vdi.lz", "aros.vdi.lz", "amigaos_4.0.vdi.lz", "amigaos_4.0_sfs2.vdi.lz"};
|
readonly string[] testfiles = {"uae.vdi.lz", "aros.vdi.lz", "amigaos_4.0.vdi.lz", "amigaos_4.0_sfs2.vdi.lz"};
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual("SmartFileSystem", fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SysV_MBR
|
public class SysVMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{"att_unix_svr4v2.1.vdi.lz", "att_unix_svr4v2.1_2k.vdi.lz", "scoopenserver_5.0.7hw.vdi.lz"};
|
{"att_unix_svr4v2.1.vdi.lz", "att_unix_svr4v2.1_2k.vdi.lz", "scoopenserver_5.0.7hw.vdi.lz"};
|
||||||
@@ -80,7 +80,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SysV_RDB
|
public class SysVRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"amix.vdi.lz"};
|
readonly string[] testfiles = {"amix.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class UDF
|
public class Udf
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -105,7 +105,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
|
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
|
||||||
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
|
||||||
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
|
||||||
Filesystem fs = new DiscImageChef.Filesystems.UDF();
|
Filesystem fs = new UDF();
|
||||||
Partition wholePart = new Partition
|
Partition wholePart = new Partition
|
||||||
{
|
{
|
||||||
Name = "Whole device",
|
Name = "Whole device",
|
||||||
@@ -113,7 +113,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(udfversion[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(udfversion[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class UFS
|
public class Ufs
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -86,7 +86,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
|
||||||
};
|
};
|
||||||
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
|
||||||
fs.GetInformation(image, wholePart, out string information);
|
fs.GetInformation(image, wholePart, out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class UFS_APM
|
public class UfsApm
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class UFS_MBR
|
public class UfsMbr
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -122,7 +122,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class UFS_NeXT
|
public class UfsNeXt
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class UFS_NeXT_Floppy
|
public class UfsNeXtFloppy
|
||||||
{
|
{
|
||||||
readonly string[] testfiles =
|
readonly string[] testfiles =
|
||||||
{
|
{
|
||||||
@@ -85,7 +85,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ using NUnit.Framework;
|
|||||||
namespace DiscImageChef.Tests.Filesystems
|
namespace DiscImageChef.Tests.Filesystems
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class UFS_RDB
|
public class UfsRdb
|
||||||
{
|
{
|
||||||
readonly string[] testfiles = {"amix.vdi.lz"};
|
readonly string[] testfiles = {"amix.vdi.lz"};
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Tests.Filesystems
|
|||||||
|
|
||||||
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
Assert.AreNotEqual(-1, part, $"Partition not found on {testfiles[i]}");
|
||||||
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
Assert.AreEqual(true, fs.Identify(image, partitions[part]), testfiles[i]);
|
||||||
fs.GetInformation(image, partitions[part], out string information);
|
fs.GetInformation(image, partitions[part], out _);
|
||||||
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
|
||||||
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
|
||||||
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
Assert.AreEqual(type[i], fs.XmlFSType.Type, testfiles[i]);
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user