Beispiel #1
0
        public void GetClassByClassName()
        {
            Machine machine = new Machine();
            IClass klass = machine.CreateClass("Rectangle");
            machine.SetGlobalObject(klass.Name, klass);

            var result = machine.GetClass(klass.Name);

            Assert.IsNotNull(result);
            Assert.AreSame(klass, result);
        }