[Mono-devel-list] [PATCH] Fix "neutral" sorting in DataView
haisenko at webport.de
Thu Jul 21 11:27:41 EDT 2005
On Thursday 21 July 2005 17:18, Atsushi Eno wrote:
> Hi Marc,
> > Oh dear... luckily I now managed to write the stuff today. I've wasted
> > two and a half hours just for that silly test ! Would anyone care to
> > explain to me why the line
> > Assert.AreEqual (1, 2, "Foo");
> > causes mcs to complain "error CS0119: Expression denotes a `method
> > group', where a `variable', `value' or `type' was expected" ?
> Because there is both Assert class and Assert method in that scope.
> Since the test class is derived from Assertion, it guesses "Assert"
> is NUnit.Framework.Assertion.Assert method, not NUnit.Framework.Assert
Aaaaaah, thanks a lot :-) But I guess a better error message should be
displayed here, it'd be better if mcs would complain about ambiguity. I
didn't had (and still don't have) an idea what a "method group" is supposed
> So if you want to use static Assert methods, you can use alias by
> using statement, like:
> using AssertType = NUnit.Framework.Assert;
> and call AssertType.AreEqual().
> Atsushi Eno
Thanks for the explanations,
Webport IT-Services GmbH
mailto: haisenko at webport.de
More information about the Mono-devel-list