diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index e5e7b92b..353a14e7 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -32,9 +32,9 @@
-
+
-
+
@@ -58,7 +58,7 @@
-
+
diff --git a/src/tests/Recyclarr.TrashLib.TestLibrary/TrashLibIntegrationFixture.cs b/src/tests/Recyclarr.TrashLib.TestLibrary/TrashLibIntegrationFixture.cs
index 352929ac..ace193a2 100644
--- a/src/tests/Recyclarr.TrashLib.TestLibrary/TrashLibIntegrationFixture.cs
+++ b/src/tests/Recyclarr.TrashLib.TestLibrary/TrashLibIntegrationFixture.cs
@@ -18,9 +18,10 @@ public abstract class TrashLibIntegrationFixture : IDisposable
{
protected TrashLibIntegrationFixture()
{
- // todo: Remove later. Needed because of this issue:
- // https://github.com/TestableIO/System.IO.Abstractions/issues/983
- Fs.Directory.Delete("temp", true);
+ Fs = new MockFileSystem(new MockFileSystemOptions
+ {
+ CreateDefaultTempDir = false
+ });
Paths = new AppPaths(Fs.CurrentDirectory().SubDirectory("test").SubDirectory("recyclarr"));
Logger = CreateLogger();
@@ -76,7 +77,7 @@ public abstract class TrashLibIntegrationFixture : IDisposable
private readonly Lazy _container;
protected ILifetimeScope Container => _container.Value;
- protected MockFileSystem Fs { get; } = new();
+ protected MockFileSystem Fs { get; }
protected TestConsole Console { get; } = new();
protected IAppPaths Paths { get; }
protected ILogger Logger { get; }