[Mono-devel-list] Re: [Mono-patches] r46899 - in trunk/mcs/class/Managed.Windows.Forms: . Test/System.Windows.Forms

Ben Maurer bmaurer at ximian.com
Mon Jul 4 11:44:48 EDT 2005

On Mon, 2005-07-04 at 03:12 -0400, Ritvik Mayank  wrote:
> +		Assert.AreEqual("System.Windows.Forms.ListBox+ObjectCollection",  lb1.Items.ToString(), "#7");

Please don't do that. The ToString functionality is provided by Object,
there's no need to test it. It also prevents any clever tricks (for
example, returning a derived class).

-- Ben

More information about the Mono-devel-list mailing list