Skip to content
Snippets Groups Projects
Commit 588dbed4 authored by Clare Sudbery's avatar Clare Sudbery
Browse files

Add approval test to csharpcore

parent 8dee58f7
No related branches found
No related tags found
No related merge requests found
using System;
using System.IO;
using System.Text;
using ApprovalTests;
using ApprovalTests.Reporters;
using GildedRoseTests;
using NUnit.Framework;
namespace csharp
{
[UseReporter(typeof(DiffReporter))]
[TestFixture]
public class ApprovalTest
{
[Test]
public void ThirtyDays()
{
StringBuilder fakeoutput = new StringBuilder();
Console.SetOut(new StringWriter(fakeoutput));
Console.SetIn(new StringReader("a\n"));
TexttestFixture.Main(new string[] { });
var output = fakeoutput.ToString();
Approvals.Verify(output);
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment