test: Remove unused FileSystem extension methods

pull/201/head
Robert Dailey 1 year ago
parent e61a23e649
commit d5c4a5d8ec

@ -1,31 +0,0 @@
using System.IO.Abstractions;
namespace Recyclarr.TestLibrary;
public static class MockFileSystemExtensions
{
public static void AddEmptyFile(this MockFileSystem fs, string path)
{
fs.AddFile(path, new MockFileData(""));
}
public static void AddEmptyFile(this MockFileSystem fs, IFileInfo path)
{
fs.AddEmptyFile(path.FullName);
}
public static void AddDirectory(this MockFileSystem fs, IDirectoryInfo path)
{
fs.AddDirectory(path.FullName);
}
public static void AddFile(this MockFileSystem fs, IFileInfo path, MockFileData data)
{
fs.AddFile(path.FullName, data);
}
public static MockFileData GetFile(this MockFileSystem fs, IFileInfo path)
{
return fs.GetFile(path.FullName);
}
}
Loading…
Cancel
Save