1 // ****************************************************************
\r
2 // Copyright 2007, Charlie Poole
\r
3 // This is free software licensed under the NUnit license. You may
\r
4 // obtain a copy of the license at http://nunit.org/?p=license&r=2.4
\r
5 // ****************************************************************
\r
11 /// The TestOutput class holds a unit of output from
\r
12 /// a test to either stdOut or stdErr
\r
15 public class TestOutput
\r
18 TestOutputType type;
\r
21 /// Construct with text and an ouput destination type
\r
23 /// <param name="text">Text to be output</param>
\r
24 /// <param name="type">Destination of output</param>
\r
25 public TestOutput(string text, TestOutputType type)
\r
32 /// Return string representation of the object for debugging
\r
34 /// <returns></returns>
\r
35 public override string ToString()
\r
37 return type + ": " + text;
\r
52 /// Get the output type
\r
54 public TestOutputType Type
\r
64 /// Enum representing the output destination
\r
65 /// It uses combinable flags so that a given
\r
66 /// output control can accept multiple types
\r
67 /// of output. Normally, each individual
\r
68 /// output uses a single flag value.
\r
70 public enum TestOutputType
\r
73 /// Send output to stdOut
\r
78 /// Send output to stdErr
\r
83 /// Send output to Trace
\r
88 /// Send output to Log
\r