🎨Converted all plugin types to interfaces.

This commit is contained in:
2017-12-26 06:05:12 +00:00
parent a002253fa4
commit f66a0bdd42
295 changed files with 9499 additions and 10414 deletions

View File

@@ -99,9 +99,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "acorn", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -2003,9 +2003,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "apm", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -315,9 +315,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "atari", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -390,9 +390,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "bsd", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -157,9 +157,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "gpt", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -1943,9 +1943,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "mbr", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -98,9 +98,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "minix", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -377,9 +377,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "pc98", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new T98();
IMediaImage image = new T98();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -227,9 +227,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "rdb", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -220,9 +220,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "sgi", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -149,9 +149,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "sun", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);

View File

@@ -198,9 +198,9 @@ namespace DiscImageChef.Tests.Partitions
for(int i = 0; i < testfiles.Length; i++)
{
string location = Path.Combine(Consts.TestFilesRoot, "partitions", "vtoc", testfiles[i]);
Filter filter = new LZip();
IFilter filter = new LZip();
filter.Open(location);
ImagePlugin image = new Vdi();
IMediaImage image = new Vdi();
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
List<Partition> partitions = Core.Partitions.GetAll(image);
Assert.AreEqual(wanted[i].Length, partitions.Count, testfiles[i]);