From f49f97b8db9987d73abcbec47e883b633eb2c4dc Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 17 Sep 2024 22:02:36 +1000 Subject: [PATCH] cleanup --- src/Verify.MSTest.Tests/Tests.cs | 4 ++++ src/Verify.NUnit.Tests/Tests.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Verify.MSTest.Tests/Tests.cs b/src/Verify.MSTest.Tests/Tests.cs index b0482abd8e..712834dc7e 100644 --- a/src/Verify.MSTest.Tests/Tests.cs +++ b/src/Verify.MSTest.Tests/Tests.cs @@ -56,6 +56,8 @@ await Assert.ThrowsExceptionAsync( () => Verify("Bar", settings)); } +#if NET9_0 + [ResultFilesCallback] [TestMethod] public async Task AutoVerifyHasAttachment() @@ -76,6 +78,8 @@ public async Task AutoVerifyHasAttachment() await Verify("Bar", settings); } +#endif + [ResultFilesCallback] [TestMethod] public async Task NewHasAttachment() diff --git a/src/Verify.NUnit.Tests/Tests.cs b/src/Verify.NUnit.Tests/Tests.cs index b5f0def317..f044ea8401 100644 --- a/src/Verify.NUnit.Tests/Tests.cs +++ b/src/Verify.NUnit.Tests/Tests.cs @@ -98,6 +98,8 @@ public void ChangeHasAttachment() AreEqual($"Tests.ChangeHasAttachment.{Namer.TargetFrameworkNameAndVersion}.received.txt", file); } +#if NET9_0 + [Test] public async Task AutoVerifyHasAttachment() { @@ -115,6 +117,8 @@ public async Task AutoVerifyHasAttachment() AreEqual($"Tests.AutoVerifyHasAttachment.{Namer.TargetFrameworkNameAndVersion}.received.txt", file); } +#endif + [Test] public void NewHasAttachment() {