diff --git a/csharp/ApprovalTest.cs b/csharp/ApprovalTest.cs new file mode 100644 index 00000000..2710c604 --- /dev/null +++ b/csharp/ApprovalTest.cs @@ -0,0 +1,30 @@ +using System; +using System.IO; +using System.Text; +using NUnit.Framework; + +namespace csharp +{ + [TestFixture] + public class ApprovalTest + { + [Test] + public void ThirtyDays() + { + var lines = File.ReadAllLines("ThirtyDays.txt"); + + StringBuilder fakeoutput = new StringBuilder(); + Console.SetOut(new StringWriter(fakeoutput)); + Console.SetIn(new StringReader("a\n")); + + Program.Main(new string[] { }); + String output = fakeoutput.ToString(); + + var outputLines = output.Split('\n'); + for(var i = 0; i + @@ -74,6 +75,11 @@ + + + Always + +