mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 17:21:38 +00:00
Use Environment.NewLine in Xunit tests
This commit is contained in:
parent
97a5bbff92
commit
494b39f2a2
@ -18,7 +18,7 @@ public class ApprovalTest
|
||||
{
|
||||
var fakeoutput = new StringBuilder();
|
||||
Console.SetOut(new StringWriter(fakeoutput));
|
||||
Console.SetIn(new StringReader("a\n"));
|
||||
Console.SetIn(new StringReader($"a{Environment.NewLine}"));
|
||||
|
||||
Program.Main(new string[] { "30" });
|
||||
var output = fakeoutput.ToString();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user