Skip to content

Conversation

@Faizan2304
Copy link
Contributor

Issue: #801

@Faizan2304 Faizan2304 requested review from codito and smadala May 11, 2017 12:37
@msftclas
Copy link

@Faizan2304,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@Faizan2304
Copy link
Contributor Author

For following tests

using NUnit.Framework;
using System;
namespace nunit24214asf
{
	[TestFixture()]
	public class Test
	{
		[Test()]
		public void TestCase()
		{
			Assert.AreEqual(3, 4);
		}
	}
}

Without Fix output would be:

Failed   TestCase
Error Message:
   Expected: 3
  But was:  4

Stack Trace:
at nunit24214asf.Test.TestCase() in c:\users\faahmad\documents\visual studio 2017\Projects\UnitTestProject1\UnitTestProject1\UnitTest
1.cs:line 11

Standard Output Messages:

Total tests: 1. Passed: 0. Failed: 1. Skipped: 0.
Test Run Failed.

### With Fix output would be:

Failed   TestCase
Error Message:
   Expected: 3
  But was:  4

Stack Trace:
at nunit24214asf.Test.TestCase() in c:\users\faahmad\documents\visual studio 2017\Projects\UnitTestProject1\UnitTestProject1\UnitTest
1.cs:line 11


Total tests: 1. Passed: 0. Failed: 1. Skipped: 0.
Test Run Failed.

@codito codito changed the title null check for text in massages of TestResult and print it on console if its not null or empty. null check for text in messages of TestResult and print it on console if its not null or empty. May 12, 2017
@Faizan2304
Copy link
Contributor Author

@dotnet-bot test Windows_NT / Debug Build please

@Faizan2304
Copy link
Contributor Author

@dotnet-bot test Windows_NT / Debug Build please

@Faizan2304 Faizan2304 merged commit 16a055b into microsoft:master May 15, 2017
@Faizan2304 Faizan2304 deleted the consoleException branch May 15, 2017 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants