Re: nUnit version 2.4.7 cannot support .net framework1.1
"Charlie Poole" <[email protected]> Tue, 22 Jul 2008 09:38:17 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <000101c8ec19$5bcb0b30$6401a8c0@ferrari> |
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]>: 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]] Sent: Monday, July 21, 2008 8:50 PM To: Charlie Poole Cc: [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]>: 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]] Sent: Monday, July 21, 2008 5:56 PM To: Charlie Poole; [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]>: 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]] On Behalf Of Agnes Chan Sent: Monday, July 21, 2008 1:50 AM To: [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 <http://moblin-contest.org/redirect.php?banner_id=100&url=/> &url=/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users -- 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