AjTalk.Tests.Compiler.ParserTests.CompileBlockWithSourceCode C# (CSharp) Méthode

CompileBlockWithSourceCode() private méthode

private CompileBlockWithSourceCode ( ) : void
Résultat void
        public void CompileBlockWithSourceCode()
        {
            string source = "nil invokeWith: 10; invokeWith: 20";
            Parser compiler = new Parser(source);
            Block block = compiler.CompileBlock();
            Assert.AreEqual(source, block.SourceCode);
        }
ParserTests