Re: Name Collision
"Charlie Poole" <[email protected]> Fri, 29 Aug 2008 10:26:39 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.user,gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <005c01c909fc$6962a1d0$6401a8c0@ferrari> |
This is a multi-part message in MIME format. --===============1114937012== Content-Type: multipart/alternative; boundary="----=_NextPart_000_005D_01C909C1.BD03C9D0" This is a multi-part message in MIME format. ------=_NextPart_000_005D_01C909C1.BD03C9D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit What would folks like to see as an alternative name? _____ From: [email protected] [mailto:[email protected]] On Behalf Of Craig A. Ritchie Sent: Friday, August 29, 2008 4:41 AM To: [email protected] Subject: [Nunit-users] Name Collision Not sure if this has been discussed or reported as of yet but NUnit 2.5 Alpha 3 has a class called AssertionHelper class that has a method called Expect(). When inheriting from AssertionHelper in my test class and then using Rhino.Mocks within my test I get some naming collision with this Expect method as Rhino.Mocks has a static class named Expect. I know there are simple ways around this but since more than likely these two testing tools are used together quite a bit NUnit 2.5 might want to address this in a future release if AssertionHelper is going to hang around. -Craig ------=_NextPart_000_005D_01C909C1.BD03C9D0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20 "urn:schemas-microsoft-com:office:office" xmlns:w =3D=20 "urn:schemas-microsoft-com:office:word"><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR> <STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in = 1.25in; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline } A:visited { COLOR: purple; TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION: underline } SPAN.EmailStyle17 { COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose } DIV.Section1 { page: Section1 } </STYLE> </HEAD> <BODY lang=3DEN-US vLink=3Dpurple link=3Dblue> <DIV><SPAN class=3D390022617-29082008><FONT face=3DArial color=3D#0000ff = size=3D2>What=20 would folks like to see as an alternative name?</FONT></SPAN></DIV><BR> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B>=20 [email protected]=20 [mailto:[email protected]] <B>On Behalf Of = </B>Craig=20 A. Ritchie<BR><B>Sent:</B> Friday, August 29, 2008 4:41 = AM<BR><B>To:</B>=20 [email protected]<BR><B>Subject:</B> [Nunit-users] = Name=20 Collision<BR></FONT><BR></DIV> <DIV></DIV> <DIV class=3DSection1> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Not sure if this has = been=20 discussed or reported as of yet but NUnit 2.5 Alpha 3 has a class = called=20 AssertionHelper class that has a method called Expect(). When = inheriting=20 from AssertionHelper in my test class and then using Rhino.Mocks = within my=20 test I get some naming collision with this Expect method as = Rhino.Mocks has a=20 static class named Expect. I know there are simple ways around = this but=20 since more than likely these two testing tools are used together quite = a bit=20 NUnit 2.5 might want to address this in a future release if = AssertionHelper is=20 going to hang around.<o:p></o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: = Arial"><o:p> </o:p></SPAN></FONT></P> <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20 style=3D"FONT-SIZE: 10pt; FONT-FAMILY: = Arial">-Craig<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTM= L> ------=_NextPart_000_005D_01C909C1.BD03C9D0-- --===============1114937012== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ --===============1114937012== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users --===============1114937012==--