This post originated from an RSS feed registered with .NET Buzz
by Maruis Marais.
Original Post: NUnit vs. Microsoft.VisualStudio.TestTools.UnitTesting Behaviour
Feed Title: exceptionz
Feed URL: http://feeds.feedburner.com/Exceptionz
Feed Description: I am an XP, TDD, OO and .NET enthusiast. Things like Design Patterns makes my pulse race, I love learning exciting new things and to share my thoughts and techniques with the world. So join me and together we can explore the awesome world of software development
Iâve found the following odd behavioural difference in Assert.AreEqual between NUnit and Microsoft.VisualStudio.TestTools.UnitTesting.
In NUnit you can specify the following test that will pass:
[TestMethod]
public void IntegerLongComparison()
{
Assert.AreEqual(1, 1L);
Assert.AreEqual(1L, 1);
}
But when you try to do the same with Microsoftâs Unit testing framework it fails.
So this