First time using in VS2005Pro - Unable to write test fixture

3 views
Skip to first unread message

yschan

unread,
Aug 11, 2010, 7:24:42 AM8/11/10
to TestDriven.NET Users
Hi all,

I'm using VS2005 Pro and just installed the TestDriven.NET-3.0.2749
(RTM).

In my VS2005 VB project, when right-click on my code; i can see the
"Run Test(s)" & "Test with" menus. So far so good.

Then I try to reference the Nunit namespace in my VB class, it failed.
So, in my project I set a reference path to "\Program Files
\TestDriven.NET 3\NUnit\2.5\framework" and then manually set a
reference to the NUnit.framework.dll.Is this the correct step because
I thought when I installed the TestDriven.net, it will also installed
the NUnit and will somehow registered the namespace/framework?

Next when I write the [TestFixture] and [Test] in my VB class, the
VS2005 prompt me error for this declaration. Is there any setting I
need to set?

Any advice will be much appreciated.
Thank you.

Jamie Cansdale

unread,
Aug 12, 2010, 4:57:45 AM8/12/10
to testdri...@googlegroups.com
Hello,

> I thought when I installed the TestDriven.net, it will also installed
> the NUnit and will somehow registered the namespace/framework?
>

TestDriven.Net does include the NUnit binaries so that it can execute
tests for all NUnit versions. It doesn't register the NUnit
namespace/framework so that it's visible on the add references
dialogue.

You can find a tutorial for using NUnit with VB here:
http://www.tertullian.org/rpearse/RightToLeft_Syriac/nUnitVBNet.htm

I'd recommend including the 'nunit.framework' assembly as part of your
solution when you save it to source control. This way you don't need
to worry about installing the correct version of NUnit when you (or
someone else) needs to execute your tests.

I hope that helps.

Regards,
Jamie.

--
http://www.testdriven.net
http://twitter.com/jcansdale
http://weblogs.asp.net/nunitaddin

> --
> You received this message because you are subscribed to the Google Groups "TestDriven.NET Users" group.
> To post to this group, send email to testdri...@googlegroups.com.
> To unsubscribe from this group, send email to testdrivenuse...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/testdrivenusers?hl=en.
>
>

yschan

unread,
Aug 13, 2010, 5:52:23 AM8/13/10
to TestDriven.NET Users
Hi Jamie,

Thanks for the guidance. Now I can get some of the test running.

Again thank you :)


On Aug 12, 4:57 pm, Jamie Cansdale <jcansd...@gmail.com> wrote:
> Hello,
>
> > I thought when I installed the TestDriven.net, it will also installed
> > the NUnit and will somehow registered the namespace/framework?
>
> TestDriven.Net does include the NUnit binaries so that it can execute
> tests for all NUnit versions. It doesn't register the NUnit
> namespace/framework so that it's visible on the add references
> dialogue.
>
> You can find a tutorial for using NUnit with VB here:http://www.tertullian.org/rpearse/RightToLeft_Syriac/nUnitVBNet.htm
>
> I'd recommend including the 'nunit.framework' assembly as part of your
> solution when you save it to source control. This way you don't need
> to worry about installing the correct version of NUnit when you (or
> someone else) needs to execute your tests.
>
> I hope that helps.
>
> Regards,
> Jamie.
>
> --http://www.testdriven.nethttp://twitter.com/jcansdalehttp://weblogs.asp.net/nunitaddin
Reply all
Reply to author
Forward
0 new messages