Search the web
Sign In
New User? Sign Up
csunit
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Parameterized Tests in VB   Message List  
Reply | Forward Message #77 of 92 |
Good Morning!

I'm attempting to use the Parameterized testing facility with some VB
code I've been assigned to write and use.

I've created my test harness and created a simple test:

<TestFixture()> _
Public Class MyTestClass1
<Test()> _
Public Sub PerformTest1()
[ some code.... ]
End Sub
End Class

Currently, PerformTest1() calls the same internal method - but passes
different values in. What I want to do is to pass my values into
PerformTest1() and simplify my code.

I've looked at the documentation for Parameterized Tests and altered
my code to look like:

Public Sub PerformTest1( ByVal iVal1 as Integer )

My problem comes in when I attempt to add the <DataRow( 1 )> _ after
my test decorator in the code. I'm getting errors in the compile
indicating that type DataRow is not defined.

The IntelliSense is showing me <Test()> but not <DataRow>...

Any ideas???

Bob




Tue Nov 25, 2008 4:59 pm

rbatemanmi
Offline Offline
Send Email Send Email

Forward
Message #77 of 92 |
Expand Messages Author Sort by Date

Good Morning! I'm attempting to use the Parameterized testing facility with some VB code I've been assigned to write and use. I've created my test harness and...
rbatemanmi
Offline Send Email
Nov 25, 2008
5:13 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help