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

CompileMethodWithHorizontalBarAsName() private method

private CompileMethodWithHorizontalBarAsName ( ) : void
return void
        public void CompileMethodWithHorizontalBarAsName()
        {
            Machine machine = new Machine();
            IClass cls = machine.CreateClass("Rectangle");
            Parser compiler = new Parser("| aBoolean ^aBoolean");
            var method = compiler.CompileInstanceMethod(cls);

            Assert.IsNotNull(method);
            Assert.AreEqual("|", method.Name);
            Assert.IsNotNull(method.ByteCodes);
        }
ParserTests