blob: d9de594f290f3900c52cca0d7884c46bdb5408fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
namespace Codeforces.Test;
public class Tests
{
[Fact]
public void TestIO()
{
IOTester.Start();
var lines = File.ReadLines(@"..\..\..\input.txt");
IOTester.SetInput(lines.ToArray());
Program.Main();
string[] expectedOutput = File.ReadLines(@"..\..\..\output.txt").ToArray();
string[] actualOutput = IOTester.GetOutputLines();
Assert.Equal(expectedOutput.Length, actualOutput.Length);
for (int i = 0; i < expectedOutput.Length; i++)
{
Assert.Equal(expectedOutput[i], actualOutput[i]);
}
}
}
|