ToString() public method

Return string representation of the object for debugging
public ToString ( ) : string
return string
Exemplo n.º 1
0
        /// <summary>
        /// Called when the test creates text output.
        /// </summary>
        /// <param name="testOutput">A console message</param>
        public void TestOutput(TestOutput testOutput)
        {
            try
            {			
#if false
				string report = string.Format("<output type=\"{0}\"><text>{1}</text></output>",
				    testOutput.Type, testOutput.Text);

				handler.RaiseCallbackEvent(report);
#else
                handler.RaiseCallbackEvent(testOutput.ToXml(false).OuterXml);
#endif
            }
            catch (Exception ex)
            {
                log.Error("Exception processing: " + testOutput.ToString() + NUnit.Env.NewLine + ex.ToString());
            }

        }
Exemplo n.º 2
0
 void nui.ITestListener.TestOutput(nui.TestOutput output)
 {
     WriteLog(output.ToString());
 }