public void NotFindErrors(string filename) { var code = CorrectTestDataDir.GetFiles(filename).Single().ContentAsUtf8(); var errors = new IndentsValidator().FindErrors(code); if (errors != null) { Console.WriteLine(errors); } errors.Should().BeNullOrEmpty(); }
public void NotFindErrors(string filename) { var code = CorrectTestDataDir.GetFiles(filename).Single().ContentAsUtf8(); var errors = new ExcessLinesValidator().FindErrors(code); if (errors.Any()) { Console.WriteLine(errors.Select(e => e.GetMessageWithPositions().ToList())); } errors.Should().BeNullOrEmpty(); }