Refactoring c# projects (#544)

Small Refactoring c# projects, e.g.
* add days
* remove StartupObject
* Fix Approval tests for NUnit
* Use Environment.NewLine in Xunit tests
* Added + fixed README.md
* Removed global.json
This commit is contained in:
Stef Heyenrath authored and GitHub committed 2024-06-06 14:13:44 +02:00
1 parent a348b20789
commit 99f2fcbf18
17 files changed
+263 -236

No files matched your search

+6 -2
View File
@@ -1,10 +1,14 @@
using GildedRoseKata;
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using VerifyNUnit;
using NUnit.Framework;
namespace GildedRoseTests;
public class ApprovalTest
@@ -16,7 +20,7 @@ public class ApprovalTest
Console.SetOut(new StringWriter(fakeOutput));
Console.SetIn(new StringReader($"a{Environment.NewLine}"));
TextTestFixture.Main(new string[] { "30" });
Program.Main(new string[] { "30" });
var output = fakeOutput.ToString();
return Verifier.Verify(output);