[Mono-dev] NUnit Test Fails on Mono

Charlie Poole charlie at nunit.com
Fri Dec 9 14:39:20 EST 2005

Hi all,

Here's a test that fails on my mono build of NUnit... I'm running Mono
1.1.10 - the windows install.

[ExpectedException(typeof(AssertionException), "expected same" )]
public void SameFails()
	StringBuilder builder = new StringBuilder();
	string s1 = builder.ToString();
	string s2 = "S1";

	Assert.AreEqual(s1, s2);
	Assert.AreSame(s1, s2);

It appears that interning works differently on Microsoft .Net and Mono in
this case. Obviously, my test shouldn't depend on the details of interning


More information about the Mono-devel-list mailing list