Re: nUnit version 2.4.7 cannot support .net framework1.1
"Agnes Chan" <[email protected]> Wed, 23 Jul 2008 09:43:46 +0800
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Andreas and Charlie Thanks for helping me to look into this problem. Do you have any suggestion for me to test on my data? I am actually using VB .NET 2003. For your information, I downloaded the * rowtestextension-1.2.2.0-nunit-2.4.6-net1.1*, and added in the 2 dll: * NUnitExtension.RowTest.AddIn.dll*, *NUnitExtension.RowTest.dll*. Unfortunately .net not allow me to add in these 2 references. Thanks. Regards, Agnes 2008/7/23 Andreas Schlapsi <[email protected]>: > Hi Agnes, > > I'm not an expert about VB.Net. I tried it with VB.NET (Visual Studio > 2008) and it worked. When I try the same code with VB.NET from .NET 1.1 I > have the same problem. I think this might be problem with VB.NET 1.1. > Actually it works with C# 1.0. > > Andreas > > Since RowTest is not part of NUnit, but is a separately written, bundled >> extension, >> I'm copying the author. >> Andreas, if you could answer on list, that would be great. >> Charlie >> >> >> ------------------------------------------------------------------------ >> *From:* [email protected] >> [mailto:[email protected]] *On Behalf Of >> *Agnes Chan >> *Sent:* Monday, July 21, 2008 10:48 PM >> *To:* Charlie Poole >> *Cc:* [email protected] >> *Subject:* Re: [Nunit-users] nUnit version 2.4.7 cannot support >> .net framework1.1 >> >> Hi Charlie >> >> I follow your instruction, but it doesn't work on my side. >> >> This is my code: >> <RowTest(), Row("a")> _ >> Public Sub Testing(ByVal str As String) >> >> End Sub >> >> And the error is: Conversion from 'String' to 'System.Object' >> cannot occur in a constant expression. >> >> The part I highlight with yellow is the error part. Thanks for >> helping me to look into this error. >> >> >> 2008/7/22 Charlie Poole <[email protected] >> <mailto:[email protected]>>: >> >> Hi Agnes, >> I don't believe VB allows multiple sets of angle brackets. >> Put >> both >> attributes inside the same set, like this... >> <RowTest(), _ >> Row ("A")>_ >> Public Sub Testing(ByVal str As String) >> >> End Sub >> Charlie >> >> >> ------------------------------------------------------------------------ >> *From:* Agnes Chan [mailto:[email protected] >> <mailto:[email protected]>] >> *Sent:* Monday, July 21, 2008 8:50 PM >> *To:* Charlie Poole >> *Cc:* [email protected] >> <mailto:[email protected]> >> >> *Subject:* Re: [Nunit-users] nUnit version 2.4.7 cannot >> support .net framework 1.1 >> >> Hi Charlie >> >> I follow your instruction but it still marked as error. >> >> I add these 3 at the beginning of my code: >> Imports NUnit.Framework.Extensions >> Imports NUnit.Framework >> Imports NUnit.Core.Extensions.RowTest >> >> Here is my code: >> <RowTest()> _ >> <Row ("A")> _ >> Public Sub Testing(ByVal str As String) >> >> End Sub >> >> The part I highlight with yellow is where the error >> occurred. And the error is still remain as: Attribute >> specifier is not a complete statement. Use a line >> continuation to apply the attribute to the following >> statement. >> >> Thanks for helping me to look into this error. >> >> >> >> 2008/7/22 Charlie Poole <[email protected] >> <mailto:[email protected]>>: >> >> Hi Agnes, >> I put us back to the list - otherwise the >> context gets >> lost. >> If you are putting attributes on a separate >> line from >> the method definition in >> VB, that's an error. >> RowTest and Row are not part of >> NUnit.Framework. You >> need to add both >> a reference to the assembly with RowTest - >> nunit.core.extensions.dll - and >> import the namespace for RowTest - use the >> intellisense to find it. >> Charlie >> >> >> ------------------------------------------------------------------------ >> *From:* Agnes Chan [mailto:[email protected] >> <mailto:[email protected]>] >> *Sent:* Monday, July 21, 2008 5:56 PM >> *To:* Charlie Poole; [email protected] >> <mailto:[email protected]> >> *Subject:* Re: [Nunit-users] nUnit version 2.4.7 >> cannot support .net framework 1.1 >> >> Hi, >> >> The error I encountered is happened under nUnit >> version 2.4.7 + .net framework 1.1. >> >> I wish to use RowTest to test on my data, and I >> added reference to nunit.framework.extensions >> assembly. >> >> I added "Imports NUnit.Framework" at the >> beginning of my code, but when come to the >> <RowTest()> part: <Row("a", "b", >> "c")> _ >> It marked as an error. >> >> And the Error message is: Attribute specifier is >> not a complete statement. Use a line continuation >> to apply the attribute to the following statement. >> >> Thanks for helping me to look into this error. >> >> >> 2008/7/22 Charlie Poole >> <[email protected] >> <mailto:[email protected]>>: >> >> I would need more info to help you with this. >> The screen shot doesn't show any >> info about what the error is. I do see that >> the import statements for the rowtest >> namespaces seem to be marked as an error. >> Please provide some info >> about the error >> message in a note - no more screen >> shots please. :-) >> Charlie >> >> >> ------------------------------------------------------------------------ >> *From:* >> [email protected] >> <mailto: >> [email protected]> >> [mailto: >> [email protected] >> <mailto: >> [email protected]>] >> *On Behalf Of *Agnes Chan >> *Sent:* Monday, July 21, 2008 1:50 AM >> *To:* [email protected] >> <mailto:[email protected]> >> *Subject:* [Nunit-users] nUnit version >> 2.4.7 cannot support .net framework 1.1 >> >> Hi, >> >> I encountered this issue: nUnit version >> 2.4.7 cannot support .net framework 1.1 >> >> When I am using the RowTest(), it >> appears error. >> >> Please find attachment for screen shot. >> Thanks. >> >> -- >> >> >> Regards, >> Agnes Chan >> >> >> >> ------------------------------------------------------------------------- >> 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=/ >> < >> http://moblin-contest.org/redirect.php?banner_id=100&url=/> >> _______________________________________________ >> Nunit-users mailing list >> [email protected] >> <mailto:[email protected]> >> >> https://lists.sourceforge.net/lists/listinfo/nunit-users >> >> >> >> >> -- >> >> >> Regards, >> Agnes Chan >> >> >> >> >> -- >> >> >> Regards, >> Agnes Chan >> >> >> >> >> -- >> >> >> Regards, >> Agnes Chan >> >> > -- Regards, Agnes Chan ------------------------------------------------------------------------- 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=/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users