Пример #1
0
 public void BeforeEach()
 {
     this.logs        = new List <string>();
     this.manager     = Program.Process.CreateManager(null);
     this.commandLine = new Program.CommandLine("test", s => this.logs.Add(s), this.manager);
     this.arHandler   = new Program.AutoRoutineHandler(this.commandLine);
 }
Пример #2
0
 public void BeforeEach()
 {
     this.logs.Clear();
     this.manager = Program.Process.CreateManager(null);
     this.cmdLine = new Program.CommandLine("Test", s => this.logs.Add(s), this.manager);
     this.manager.KillAll();
 }
        public void BeforeEach()
        {
            this.connector = new MockShipConnector()
            {
                CubeGrid = new MockCubeGrid()
                {
                    GridSizeEnum = VRage.Game.MyCubeSize.Small
                },
                CustomData      = @"[connection-client]
  connector-name=connector name
  server-channel=server channel
",
                CustomName      = "connector name",
                DisplayNameText = "connector name",
                WorldMatrix     = MatrixD.Identity,
                WorldPosition   = new Vector3D(5, 15, 25)
            };
            this.gts = new MockGridTerminalSystem()
            {
                this.connector
            };
            this.listener = new MockUnicastListener();
            this.igc      = new MockIntergridCommunicationSystem()
            {
                UnicastListener = this.listener
            };
            this.manager     = Program.Process.CreateManager(null);
            this.commandLine = new Program.CommandLine("test", null, this.manager);
        }
Пример #4
0
 public void BeforeEach()
 {
     this.commandCalls = new List <string>();
     this.manager      = Program.Process.CreateManager(s => System.Diagnostics.Debug.WriteLine(s));
     this.commandLine  = new Program.CommandLine("test", null, this.manager);
     this.commandLine.RegisterCommand(new Program.Command("cmd", this.command, "", requiredTrigger: Program.CommandTrigger.Cmd));
     this.mock    = new Program.MockAction();
     this.process = this.manager.Spawn(null, "test");
 }
Пример #5
0
 public void BeforeEach() => this.manager = Program.Process.CreateManager(null);
Пример #6
0
 public void BeforeEach()
 {
     this.manager     = Program.Process.CreateManager(null);
     this.commandLine = new Program.CommandLine("test", null, this.manager);
     this.parser      = new Program.RoutineParser(this.commandLine);
 }
Пример #7
0
 public void BeforeEach()
 {
     this.manager = Program.Process.CreateManager(null);
     this.manager.SetSmart(false);
 }