Esempio n. 1
0
 void startRun()
 {
     this.run = new ConsoleMockedRun()
     {
         GridTerminalSystem = this.gts
     };
     this.run.NextTick();
     this.program      = this.programableBlock.Program as Program;
     this.solarManager = this.program.GetType().GetField("solarManager", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(this.program) as Program.SolarManager;
 }
Esempio n. 2
0
 public void BeforeEach()
 {
     this.baseGrid         = this.getMockCubeGrid("base grid", true);
     this.programableBlock = new MockProgrammableBlock {
         CubeGrid    = this.baseGrid,
         CustomData  = "[solar-manager]\nkeyword=solar",
         CustomName  = "main pb",
         EntityId    = GetId(),
         ProgramType = typeof(Program)
     };
     this.gts = new MockGridTerminalSystem {
         this.programableBlock
     };
     this.program      = null;
     this.run          = null;
     this.solarManager = null;
 }