mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-15 10:33:53 +00:00
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:
1 parent
a348b20789
commit
99f2fcbf18
17 files changed
+263
-236
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user