コード例 #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();
 }
コード例 #3
0
        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
ファイル: CommandTest.cs プロジェクト: Schwartzmorn/SEScripts
 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);
 }