public void RedirectOutput()
 {
     _synchronizedOutput      = new SynchronizedStringWriter();
     _synchronizedErrorOutput = new SynchronizedStringWriter();
     ClearOutput();
     Host.SetOutputs(_synchronizedOutput, _synchronizedErrorOutput);
 }