View Full Version : Novices Question on NUnit
Tony Hamill
07-16-2003, 01:15 PM
Hi,
I have a novice qurestion on Unit Testing. when developers are testing a
void function with NUnit what do they test for? The Assertion object asks
for a boolean expression to evaluate the outcome of a function which is
fine, however I have lots of
public void methodName(){}
Any help greatly appreciated.
jcornado
07-16-2003, 03:57 PM
I am not a friend of *Unit but:
If your functions do not return anything and do not modify anything that is
passed by reference (which you could verify after calling the method) , what
can you test other than manually stepping thru the code? Not much.
Maybe this is some kind of GUI method that exhibits some behavior through
I/O?
Tony Hamill wrote in message ...Hi, I have a novice qurestion on Unit Testing. when developers are testing
avoid function with NUnit what do they test for? The Assertion object asksfor a boolean expression to evaluate the outcome of a function which isfine, however I have lots ofpublic void methodName(){}Any help greatly appreciated.
jcornado
07-16-2003, 03:58 PM
Or maybe they modify a third object?
Tony Hamill wrote in message ...Hi, I have a novice qurestion on Unit Testing. when developers are testing
avoid function with NUnit what do they test for? The Assertion object asksfor a boolean expression to evaluate the outcome of a function which isfine, however I have lots ofpublic void methodName(){}Any help greatly appreciated.
Lidor Wyssocky
07-19-2003, 06:27 AM
"Tony Hamill" <anthony.hamill@ntlworld.com> wrote in message
news:E9jRa.8063$X16.161132@newsfep1-win.server.ntli.net... Hi, I have a novice qurestion on Unit Testing. when developers are testing
a void function with NUnit what do they test for? The Assertion object asks for a boolean expression to evaluate the outcome of a function which is fine, however I have lots of public void methodName(){} Any help greatly appreciated.
Hi,
I've just finished writing an article about designing developer tests. Among
other things it deals with this issue. It is currently in a "draft" status,
but you can still access it at
http://www.qualityprogramming.org/Testing/DesigningDeveloperTests/DesigningD
eveloperTests.htm
Lidor
--
____________________________
Lidor Wyssocky
http://www.QualityProgramming.org
Quality Oriented Programming
Lidor Wyssocky
07-22-2003, 12:03 PM
Hi,
I've just finished writing an article about designing developer tests. Among
other things it deals with this issue. It is currently in a "draft" status,
but you can still access it at
http://www.qualityprogramming.org/Testing/DesigningDeveloperTests/DesigningD
eveloperTests.htm
--
____________________________
Lidor Wyssocky
http://www.QualityProgramming.org
Quality Oriented Programming
"Tony Hamill" <anthony.hamill@ntlworld.com> wrote in message
news:E9jRa.8063$X16.161132@newsfep1-win.server.ntli.net... Hi, I have a novice qurestion on Unit Testing. when developers are testing
a void function with NUnit what do they test for? The Assertion object asks for a boolean expression to evaluate the outcome of a function which is fine, however I have lots of public void methodName(){} Any help greatly appreciated.
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.