mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Plugin system] Initialize plugin base in tests.
This commit is contained in:
@@ -16,6 +16,9 @@ public abstract class ImageReadIssueTest
|
||||
public abstract string DataFolder { get; }
|
||||
public abstract string TestFile { get; }
|
||||
|
||||
[OneTimeSetUp]
|
||||
public void InitTest() => PluginBase.Init();
|
||||
|
||||
[Test]
|
||||
public void Test()
|
||||
{
|
||||
@@ -24,8 +27,7 @@ public abstract class ImageReadIssueTest
|
||||
bool exists = File.Exists(TestFile);
|
||||
Assert.True(exists, Localization.Test_file_not_found);
|
||||
|
||||
var filtersList = new FiltersList();
|
||||
IFilter inputFilter = filtersList.GetFilter(TestFile);
|
||||
IFilter inputFilter = PluginRegister.Singleton.GetFilter(TestFile);
|
||||
|
||||
Assert.IsNotNull(inputFilter, Localization.Filter_for_test_file_is_not_detected);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user