public void TestOutput(TestOutput testOutput) { if (testOutput.Type != TestOutputType.Trace) { WriteTrace("TestOutput {0}: '{1}'", testOutput.Type, testOutput.Text); } }
public void TestOutput(NUnit.Framework.Interfaces.TestOutput output) { JSONClass jsonClass = new JSONClass(); jsonClass.Add("name", "Info"); jsonClass.Add("uuid", myUUID); jsonClass.Add("type", "TestOutput"); jsonClass.Add("message", output.Text); ConsuloIntegration.SendToConsulo("unityTestState", jsonClass); }
/// <summary> /// Called when a test produces output for immediate display /// </summary> /// <param name="output">A TestOutput object containing the text to display</param> public void TestOutput(TestOutput output) { }
public void TestOutput(TestOutput output) { _testOutput = output; }
/// <summary> /// Initializes a new instance of the <see cref="TestOutputEvent"/> class. /// </summary> /// <param name="output">The output object.</param> public TestOutputEvent(TestOutput output) { _output = output; }
/// <summary> /// Called when a test produces output for immediate display /// </summary> /// <param name="output">A TestOutput object containing the text to display</param> public void TestOutput(TestOutput output) { Events.Enqueue(new TestOutputEvent(output)); }
/// <summary> /// Called when the test creates text output. /// </summary> /// <param name="testOutput">A console message</param> public void TestOutput(TestOutput testOutput) { foreach( ITestListener listener in Extensions ) listener.TestOutput( testOutput ); }
/// <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()); } }
public void TestOutput(TestOutput testOutput) { outWriter.Write(testOutput.Text); }
public void TestOutput(NUnit.Framework.Interfaces.TestOutput output) { Debug.Log("Test output"); }
void nui.ITestListener.TestOutput(nui.TestOutput output) { WriteLog(output.ToString()); }
/// <summary> /// Called when a test produces output for immediate display /// </summary> /// <param name="output">A TestOutput object containing the text to display</param> public void TestOutput(TestOutput output) { try { handler.RaiseCallbackEvent(output.ToXml()); } catch (Exception ex) { log.Error("Exception processing TestOutput event" + NUnit.Env.NewLine + ex.ToString()); } }
override public void Flush() { if ( sb.Length > 0 ) { lock( sb ) { TestOutput output = new TestOutput(sb.ToString(), this.type); this.listener.TestOutput( output ); sb.Length = 0; } } }
/// <summary> /// Initializes a new instance of the <see cref="OutputEvent"/> class. /// </summary> /// <param name="output">The output.</param> public OutputEvent( TestOutput output ) { this.output = output; }