Exemplo n.º 1
0
        public void FindsLocalMember()
        {
            var scope = new Sharp_LR35902_Compiler.Scope();

            scope.AddMember(TestMember);

            Assert.IsNotNull(scope.GetLocalMember("test"));
        }
Exemplo n.º 2
0
        public void FindsParentMember()
        {
            var parentscope = new Sharp_LR35902_Compiler.Scope();

            parentscope.AddMember(TestMember);
            var chiledscope = new Sharp_LR35902_Compiler.Scope(parentscope);

            Assert.IsNotNull(chiledscope.GetMember("test"));
        }