Browse Source

fix tests [no ci]

pull/2618/head
Jason Dove 2 months ago
parent
commit
d9cdbc72de
No known key found for this signature in database
  1. 3
      ErsatzTV.Core.Tests/Fakes/FakeLocalFileSystem.cs
  2. 3
      ErsatzTV.Scanner.Tests/Core/Fakes/FakeLocalFileSystem.cs

3
ErsatzTV.Core.Tests/Fakes/FakeLocalFileSystem.cs

@ -49,6 +49,9 @@ public class FakeLocalFileSystem : ILocalFileSystem @@ -49,6 +49,9 @@ public class FakeLocalFileSystem : ILocalFileSystem
public IEnumerable<string> ListFiles(string folder, string searchPattern) =>
_files.Map(f => f.Path).Filter(f => Path.GetDirectoryName(f) == folder);
public IEnumerable<string> ListFiles(string folder, params string[] searchPatterns) =>
_files.Map(f => f.Path).Filter(f => Path.GetDirectoryName(f) == folder);
public bool FileExists(string path) => _files.Any(f => f.Path == path);
public bool FolderExists(string folder) => false;

3
ErsatzTV.Scanner.Tests/Core/Fakes/FakeLocalFileSystem.cs

@ -50,6 +50,9 @@ public class FakeLocalFileSystem : ILocalFileSystem @@ -50,6 +50,9 @@ public class FakeLocalFileSystem : ILocalFileSystem
public IEnumerable<string> ListFiles(string folder, string searchPattern) =>
_files.Map(f => f.Path).Filter(f => Path.GetDirectoryName(f) == folder);
public IEnumerable<string> ListFiles(string folder, params string[] searchPatterns) =>
_files.Map(f => f.Path).Filter(f => Path.GetDirectoryName(f) == folder);
public bool FileExists(string path) => _files.Any(f => f.Path == path);
public bool FolderExists(string folder) => false;

Loading…
Cancel
Save