mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-15 10:33:53 +00:00
Refactor C# projects
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user