Re: Help me....about command line arguments

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <00b501c89a65$ef7bedf0$6401a8c0@ferrari>
Hi Mukti,
 
Unit testing of command line arguments is usually done by testing the
component that interprets the
command line arguments. Typically, it's some object that is instantiated
with an array of arguments
and sets itself up accordingly.
 
Of course, you may be talking about higher level tests, that run your entire
application. In that
case you could kick off a process with the proper arguments and see what
happens as a result.
However, this isn't unit testing and it isn't the sort of testing that NUnit
excels at.
 
If you don't have a separate object that interprets the command line
arguments, maybe your
tests are trying to tell you something. :-)
 
Charlie


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Mukti
Muttaqin
Sent: Tuesday, April 08, 2008 7:22 PM
To: [email protected]
Subject: [Nunit-users] Help me....about command line arguments



I ' am new in nunit and I have try test my code

But I have problem when test code which need read command line arguments 

 

Example :

When we run application we usually use command line argument like

 

Myprogram.exe /server=Indonesia

 

The problem is when we want test that program in Nunit GUI

I can't use the command line arguments (/server=Indonesia)

Is Nunit support to read command line argument which needed by program?

 

 

Best Regards

 

 

 

Mukti Muttaqin

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.