mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
24 lines
539 B
C#
24 lines
539 B
C#
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);
|
|
}
|
|
} |