diff --git a/Directory.Packages.props b/Directory.Packages.props
index cd9f1e9f1..1bfd4ec7d 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -36,6 +36,7 @@
+
diff --git a/Tests/Testably.Abstractions.Testing.Tests/FileSystem/ChangeHandlerTests.cs b/Tests/Testably.Abstractions.Testing.Tests/FileSystem/ChangeHandlerTests.cs
index 8dc7c9525..8b42c3736 100644
--- a/Tests/Testably.Abstractions.Testing.Tests/FileSystem/ChangeHandlerTests.cs
+++ b/Tests/Testably.Abstractions.Testing.Tests/FileSystem/ChangeHandlerTests.cs
@@ -22,7 +22,7 @@ public void CreateDirectory_CustomException_ShouldNotCreateDirectory(
{
FileSystem.Intercept.Event(_ =>
{
- FileSystem.Directory.Exists(path).Should().BeFalse();
+ FileSystem.Should().NotHaveDirectory(path);
throw exceptionToThrow;
});
Exception? exception = Record.Exception(() =>
@@ -30,7 +30,7 @@ public void CreateDirectory_CustomException_ShouldNotCreateDirectory(
FileSystem.Directory.CreateDirectory(path);
});
- FileSystem.Directory.Exists(path).Should().BeFalse();
+ FileSystem.Should().NotHaveDirectory(path);
exception.Should().Be(exceptionToThrow);
}
diff --git a/Tests/Testably.Abstractions.Testing.Tests/FileSystem/FileSystemExtensibilityTests.cs b/Tests/Testably.Abstractions.Testing.Tests/FileSystem/FileSystemExtensibilityTests.cs
index d7a7672ee..2aec14b04 100644
--- a/Tests/Testably.Abstractions.Testing.Tests/FileSystem/FileSystemExtensibilityTests.cs
+++ b/Tests/Testably.Abstractions.Testing.Tests/FileSystem/FileSystemExtensibilityTests.cs
@@ -13,7 +13,7 @@ public void Directory_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -24,7 +24,7 @@ public void DirectoryInfo_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -35,7 +35,7 @@ public void DirectoryInfoFactory_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -46,7 +46,7 @@ public void DriveInfo_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -57,7 +57,7 @@ public void DriveInfoFactory_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -68,7 +68,7 @@ public void File_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -79,7 +79,7 @@ public void FileInfo_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -90,7 +90,7 @@ public void FileInfoFactory_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -101,7 +101,7 @@ public void FileStreamFactory_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -112,7 +112,7 @@ public void FileSystemInfo_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -123,7 +123,7 @@ public void FileSystemWatcher_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -134,7 +134,7 @@ public void FileSystemWatcherFactory_ShouldSetExtensionPoint(IFileSystem fileSys
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
[SkippableTheory]
@@ -145,7 +145,7 @@ public void Path_ShouldSetExtensionPoint(IFileSystem fileSystem)
IFileSystem result = sut.FileSystem;
- result.Should().Be(fileSystem);
+ result.Should().BeSameAs(fileSystem);
}
public static IEnumerable