Exemplo n.º 1
0
            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!");
            }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 public abstract void Test(IParsingFlowParser parser, FileInfo fileInfo, int index, AssemblerContext assemblerContext);