AjTalk.Tests.Compiler.VmCompilerTests.CompileDottedName C# (CSharp) Метод

CompileDottedName() приватный Метод

private CompileDottedName ( ) : void
Результат void
        public void CompileDottedName()
        {
            Block block = this.compiler.CompileBlock("Smalltalk.MyPackage.MyClass");
            Assert.IsNotNull(block);
            Assert.IsTrue(block.NoConstants > 0);
            var decompiler = new BlockDecompiler(block);
            var steps = decompiler.Decompile();
            Assert.IsNotNull(steps);
            Assert.AreEqual(5, steps.Count);
            Assert.AreEqual("GetGlobalVariable Smalltalk", steps[0]);
            Assert.AreEqual("GetConstant \"MyPackage\"", steps[1]);
            Assert.AreEqual("Send at: 1", steps[2]);
            Assert.AreEqual("GetConstant \"MyClass\"", steps[3]);
            Assert.AreEqual("Send at: 1", steps[4]);
        }