mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
Tests named 30 days are run over 30 days
This commit is contained in:
parent
9c5090521c
commit
9fd97e0fcb
@ -19,7 +19,7 @@ namespace csharp
|
||||
Console.SetOut(new StringWriter(fakeoutput));
|
||||
Console.SetIn(new StringReader("a\n"));
|
||||
|
||||
Program.Main(new string[] { });
|
||||
Program.Main(new string[] { "30" });
|
||||
var output = fakeoutput.ToString();
|
||||
|
||||
Approvals.Verify(output);
|
||||
|
||||
@ -22,7 +22,7 @@ namespace GildedRoseTests
|
||||
Console.SetOut(new StringWriter(fakeoutput));
|
||||
Console.SetIn(new StringReader("a\n"));
|
||||
|
||||
Program.Main(new string[] { });
|
||||
Program.Main(new string[] { "30" });
|
||||
var output = fakeoutput.ToString();
|
||||
|
||||
return Verifier.Verify(output);
|
||||
|
||||
@ -17,7 +17,7 @@ public class ApprovalTest
|
||||
Console.SetOut(new StringWriter(fakeOutput));
|
||||
Console.SetIn(new StringReader($"a{Environment.NewLine}"));
|
||||
|
||||
TextTestFixture.Main(new string[] { });
|
||||
TextTestFixture.Main(new string[] { "30" });
|
||||
var output = fakeOutput.ToString();
|
||||
|
||||
Approvals.Verify(output);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user