diff --git a/csharpcore/GildedRose/GildedRose.csproj b/csharpcore/GildedRose/GildedRose.csproj
index 082dac9c..ae2821ed 100644
--- a/csharpcore/GildedRose/GildedRose.csproj
+++ b/csharpcore/GildedRose/GildedRose.csproj
@@ -1,7 +1,7 @@
- net7.0
+ net8.0
diff --git a/csharpcore/GildedRoseTests/ApprovalTest.cs b/csharpcore/GildedRoseTests/ApprovalTest.cs
index f8766d54..1e63c4d1 100644
--- a/csharpcore/GildedRoseTests/ApprovalTest.cs
+++ b/csharpcore/GildedRoseTests/ApprovalTest.cs
@@ -1,17 +1,16 @@
using System;
using System.IO;
using System.Text;
-using ApprovalTests;
-using ApprovalTests.Reporters;
+using System.Threading.Tasks;
using NUnit.Framework;
+using VerifyNUnit;
namespace GildedRoseTests;
-[UseReporter(typeof(DiffReporter))]
public class ApprovalTest
{
[Test]
- public void ThirtyDays()
+ public Task ThirtyDays()
{
var fakeOutput = new StringBuilder();
Console.SetOut(new StringWriter(fakeOutput));
@@ -20,6 +19,6 @@ public class ApprovalTest
TextTestFixture.Main(new string[] { "30" });
var output = fakeOutput.ToString();
- Approvals.Verify(output);
+ return Verifier.Verify(output);
}
}
\ No newline at end of file
diff --git a/csharpcore/GildedRoseTests/GildedRoseTest.cs b/csharpcore/GildedRoseTests/GildedRoseTest.cs
index 3eb66aaa..d3f7e53d 100644
--- a/csharpcore/GildedRoseTests/GildedRoseTest.cs
+++ b/csharpcore/GildedRoseTests/GildedRoseTest.cs
@@ -12,6 +12,6 @@ public class GildedRoseTest
var items = new List- { new Item { Name = "foo", SellIn = 0, Quality = 0 } };
var app = new GildedRose(items);
app.UpdateQuality();
- Assert.AreEqual("fixme", items[0].Name);
+ Assert.That(items[0].Name, Is.EqualTo("fixme"));
}
}
\ No newline at end of file
diff --git a/csharpcore/GildedRoseTests/GildedRoseTests.csproj b/csharpcore/GildedRoseTests/GildedRoseTests.csproj
index 470e8179..8fb0e3cd 100644
--- a/csharpcore/GildedRoseTests/GildedRoseTests.csproj
+++ b/csharpcore/GildedRoseTests/GildedRoseTests.csproj
@@ -1,23 +1,24 @@
-
- Exe
- net7.0
- GildedRoseTests.TextTestFixture
-
+
+ Exe
+ net8.0
+ GildedRoseTests.TextTestFixture
+
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
-all
-
-
-
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
-
-
-
+
+
+
\ No newline at end of file