LoadFile() public method

public LoadFile ( string filename ) : void
filename string
return void
示例#1
0
        public void LoadLibrary2UsingLoadFile()
        {
            Machine machine = new Machine();

            machine.LoadFile("Library2.st");

            Assert.IsNotNull(machine.GetGlobalObject("Object"));
            Assert.IsNotNull(machine.GetGlobalObject("Behavior"));
            Assert.IsNotNull(machine.GetGlobalObject("ClassDescription"));
            Assert.IsNotNull(machine.GetGlobalObject("Class"));
            Assert.IsNotNull(machine.GetGlobalObject("Metaclass"));
            Assert.IsNotNull(machine.GetGlobalObject("UndefinedObject"));
        }