The TestOutput class holds a unit of output from a test to a specific output stream
Пример #1
0
 public void TestOutput(TestOutput testOutput)
 {
     if (testOutput.Type != TestOutputType.Trace)
     {
         WriteTrace("TestOutput {0}: '{1}'", testOutput.Type, testOutput.Text);
     }
 }
Пример #2
0
        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);
        }
Пример #3
0
 /// <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) { }
Пример #4
0
 public void TestOutput(TestOutput output)
 {
     _testOutput = output;
 }
Пример #5
0
 /// <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;
 }
Пример #6
0
 /// <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 );
		}
Пример #8
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());
            }

        }
 public void TestOutput(TestOutput testOutput)
 {
     outWriter.Write(testOutput.Text);
 }
 public void TestOutput(NUnit.Framework.Interfaces.TestOutput output)
 {
     Debug.Log("Test output");
 }
Пример #11
0
 void nui.ITestListener.TestOutput(nui.TestOutput output)
 {
     WriteLog(output.ToString());
 }
Пример #12
0
 /// <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());
     }
 }
Пример #13
0
 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;
         }
     }
 }
Пример #14
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;
		}