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

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

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
Is it possible to create dynamic test?   Message List  
Reply | Forward Message #82 of 92 |
Hi all,

I'm wondering whether is it possible perform this using csUnit.

e.g.
[SetUp]
public void setUp() {
filePath = Directory.GetFiles(basePath, "*_ND*");
.....
}

[Test]
public void PerformTextX()
{
Assert.True(......);
}

Is it possible to dynamically generate the PerformTextX so i don't
have to copy and paste 100s' or more (dependig on the number of files
in the folder) of the same function?

Or should I just use a single PerformTest and perform a loop
inside to perform all the required checks?


Best Regards,
Boon Hui







Mon Feb 16, 2009 3:49 am

boonhuiasd
Offline Offline
Send Email Send Email

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

Hi all, I'm wondering whether is it possible perform this using csUnit. e.g. [SetUp] public void setUp() { filePath = Directory.GetFiles(basePath, "*_ND*"); ...
boonhuiasd
Offline Send Email
Feb 16, 2009
8:13 am

Why not do a parameterized test? http://www.csunit.org/documentation/2.4/parameterizedTests.html Look for the section who's title is: Parameterization With...
Robert Bateman
rbatemanmi
Offline Send Email
Feb 16, 2009
5:35 pm

Hi, Thanks for the prompt reply. This definitely sound interesting. I will give it a try. Thanks !! Boon Hui ;) ... DataSourceAttribute capability.  In your...
boonhuiasd
Offline Send Email
Feb 18, 2009
6:53 am

Hi, I managed to implements the Parameterization Test. However, as i'm quite new to csUnit, there are certain things that I not sure how to go about doing it. ...
boonhuiasd
Offline Send Email
Feb 18, 2009
6:54 am
Advanced

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