AjTalk.Tests.Compiler.ParserTests.CompileBlockWithSourceCode C# (CSharp) Method

CompileBlockWithSourceCode() private method

private CompileBlockWithSourceCode ( ) : void
return 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