public void ProblemTest() { var problem = new Problem1(); using (var reader = new StringReader(problem.Input)) using (var writer = new StringWriter()) { var testCaseCount = int.Parse(reader.ReadLine()); for (var i = 0; i < testCaseCount; i++) { var answer = IsDivisibleBy7(reader.ReadLine()) ? "TAIP" : "NE"; writer.WriteLine($"Testas #{i+1}: {answer}"); } Assert.IsTrue(problem.IsSoved(writer.ToString())); } }