namespace Codeforces.Test; public class Tests { [Fact] public void TestIO() { IOTester.Start(); string[] input = new string[] { "5", "256 42", "1000 1000", "-1000 1000", "-1000 1000", "20 22" }; IOTester.SetInput(input); Program.Main(new string[0]); string[] output = new string[] { "298", "2000", "0", "0", "42" }; string[] actualOutput = IOTester.GetOutputLines(); Assert.Equal(output.Length, actualOutput.Length - 1); for (int i = 0; i< output.Length; i++) { Assert.Equal(output[i], actualOutput[i]); } } }