예제 #1
0
 public O2Shell()
 {
     shellIO = new ShellIO();
     shellExecution = new ShellExecution(shellIO);
     shellIO.writeLine("Welcome to O2's Kernel shell.\n");
     shellIO.writeLine("This is an interactive command prompt into O2's world\n");
     shellIO.writeLine("O2Kernel Process Name: {0}\n\n",DI.O2KernelProcessName);
 }    
예제 #2
0
 public O2Shell()
 {
     shellIO        = new ShellIO();
     shellExecution = new ShellExecution(shellIO);
     shellIO.writeLine("Welcome to O2's Kernel shell.\n");
     shellIO.writeLine("This is an interactive command prompt into O2's world\n");
     shellIO.writeLine("O2Kernel Process Name: {0}\n\n", DI.O2KernelProcessName);
 }
 public void startO2CmdShell()
 {
     var stringWriter = new StringWriter();
     shellIO = new ShellIO(stringWriter);
     shellExecution = new ShellExecution(shellIO);
     var testMessage = "This is a Unit Test for O2 Kernels cmdShell";
     shellIO.writeLine(testMessage);
     var shellOutputText = stringWriter.ToString();                        
     Assert.That(testMessage == shellOutputText.Trim(), "testMessage != shellOutputText.Trim()");
     DI.log.info("O2 Kernel Shell text message: {0}", shellOutputText);
     // assign a new StringWriter so that we clear the output buffer
     shellIO.outputTextWriter = new StringWriter();            
 }
예제 #4
0
 public ShellExecution(ShellIO _shellIO)
 {
     shellIO = _shellIO;
 }
 public ShellExecution(ShellIO _shellIO)
 {
     shellIO = _shellIO;
 }