From 03598b6c6120a46754e38ca7c6604f315e4ba830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Sun, 25 Jun 2023 14:04:34 +0200 Subject: [PATCH] fix: failing tests on .NET framework (#320) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tests `Create_ShouldRefreshExistsCacheForCurrentItem_ExceptOnNetFramework` introduced in #313 fail on .NET Framework. ![image](https://github.com/Testably/Testably.Abstractions/assets/3438234/c972da45-9232-40f6-b5e6-a7ae21cce75c) Co-authored-by: Valentin Breuß --- .../FileSystem/DirectoryInfo/CreateTests.cs | 2 +- .../FileSystem/FileInfo/CreateTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Testably.Abstractions.Tests/FileSystem/DirectoryInfo/CreateTests.cs b/Tests/Testably.Abstractions.Tests/FileSystem/DirectoryInfo/CreateTests.cs index cd9daa75b..cb4c9437a 100644 --- a/Tests/Testably.Abstractions.Tests/FileSystem/DirectoryInfo/CreateTests.cs +++ b/Tests/Testably.Abstractions.Tests/FileSystem/DirectoryInfo/CreateTests.cs @@ -91,7 +91,7 @@ public void Create_ShouldRefreshExistsCacheForCurrentItem_ExceptOnNetFramework(s { sut1.Exists.Should().BeFalse(); sut2.Exists.Should().BeFalse(); - sut3.Exists.Should().BeFalse(); + sut3.Exists.Should().BeTrue(); } else { diff --git a/Tests/Testably.Abstractions.Tests/FileSystem/FileInfo/CreateTests.cs b/Tests/Testably.Abstractions.Tests/FileSystem/FileInfo/CreateTests.cs index 4567b9108..0e86821f3 100644 --- a/Tests/Testably.Abstractions.Tests/FileSystem/FileInfo/CreateTests.cs +++ b/Tests/Testably.Abstractions.Tests/FileSystem/FileInfo/CreateTests.cs @@ -36,7 +36,7 @@ public void Create_ShouldRefreshExistsCacheForCurrentItem_ExceptOnNetFramework(s { sut1.Exists.Should().BeFalse(); sut2.Exists.Should().BeFalse(); - sut3.Exists.Should().BeFalse(); + sut3.Exists.Should().BeTrue(); } else {