public override void Test(IParsingFlowParser parser, FileInfo fileInfo, int index, AssemblerContext assemblerContext) { parser.ParseLine(Line, fileInfo, index, assemblerContext); bool shouldParseLine = parser.ShouldParseLine(); Assert.AreEqual(ExpectedResult, shouldParseLine, $"ShouldParseLine for line ({index}) \"{Line}\" should return {ExpectedResult} after evaluation!"); }
public override void Test(IParsingFlowParser parser, FileInfo fileInfo, int index, AssemblerContext assemblerContext) { Assert.DoesNotThrow(() => parser.FileParsingBegin(fileInfo.FullName)); for (int i = 0; i < Lines.Length; i++) { Lines[i].Test(parser, fileInfo, i, assemblerContext); } Assert.DoesNotThrow(() => parser.FileParsingEnd(fileInfo.FullName)); }
public abstract void Test(IParsingFlowParser parser, FileInfo fileInfo, int index, AssemblerContext assemblerContext);