public void TestCleanUp() { Console.SetOut(m_standardConsoleOutputStream); OutputStorage = null; m_outputStreamBeforeOperation = null; }
// Starts checking console output until "TestCleanUp" is not called. // This method needs to be called directly before testee functionality. // INVARIANT: output stream should not be redirected after a testee operation of a testee class. public void StartCheckingConsoleOutput() { OutputStorage = new TextOutputStorageDevice(); Console.SetOut(OutputStorage); m_outputStreamBeforeOperation = Console.Out; }