diff --git a/csharpcore/GildedRoseTests/ApprovalTest.cs b/csharpcore/GildedRoseTests/ApprovalTest.cs index 178e66a7..5aabda98 100644 --- a/csharpcore/GildedRoseTests/ApprovalTest.cs +++ b/csharpcore/GildedRoseTests/ApprovalTest.cs @@ -1,18 +1,22 @@ -using Xunit; + +using GildedRoseKata; + using System; using System.IO; using System.Text; -using ApprovalTests; -using ApprovalTests.Reporters; -using GildedRoseKata; +using System.Threading.Tasks; + +using VerifyXunit; + +using Xunit; namespace GildedRoseTests { - [UseReporter(typeof(DiffReporter))] + [UsesVerify] public class ApprovalTest { [Fact] - public void ThirtyDays() + public Task ThirtyDays() { var fakeoutput = new StringBuilder(); Console.SetOut(new StringWriter(fakeoutput)); @@ -21,7 +25,7 @@ namespace GildedRoseTests Program.Main(new string[] { }); var output = fakeoutput.ToString(); - Approvals.Verify(output); + return Verifier.Verify(output); } } } diff --git a/csharpcore/GildedRoseTests/GildedRoseTests.csproj b/csharpcore/GildedRoseTests/GildedRoseTests.csproj index 88ec0900..f9aa101d 100644 --- a/csharpcore/GildedRoseTests/GildedRoseTests.csproj +++ b/csharpcore/GildedRoseTests/GildedRoseTests.csproj @@ -1,20 +1,19 @@  - - net6.0 - false - + + net6.0 + false + + + + + + + + - - - - - - - - - - - + + +