Refactor C# projects

This commit is contained in:
Stef Heyenrath committed 2024-05-29 15:01:51 +02:00
1 parent c7e0b4a8d9
commit 6e5067dcb9
33 files changed
+814 -645

No files matched your search

@@ -0,0 +1,24 @@
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using VerifyNUnit;
namespace GildedRoseTests;
public class ApprovalTest
{
[Test]
public Task ThirtyDays()
{
var fakeOutput = new StringBuilder();
Console.SetOut(new StringWriter(fakeOutput));
Console.SetIn(new StringReader($"a{Environment.NewLine}"));
TextTestFixture.Main(new string[] { "30" });
var output = fakeOutput.ToString();
return Verifier.Verify(output);
}
}