Discussion:
Integration tests with Nunit
Sambhaji Dhawan
2008-08-01 19:39:13 UTC
Permalink
Hi All,

Can we use nunit for Integration testing to test the whole flow of the
functionalities through out all tiers? How this can be done in case of a
method returning nothing (void) e.g. method is as follows..

public void test()
{

call1();
call2();
call3();
}


Thanks in advance!

Kind regards,
Sambhaji.
Bisson-Coulombe, Stephane
2008-08-01 19:50:34 UTC
Permalink
Hi Sambhaji,

Even if you were doing unit tests, a lot of methods return void. You have to assert on the "noticeable effect of you method", whatever that may be.

If your method call end up inserting records in a database, I guess you should validate these records.

Does it make sense?

Thanks,

Stéphane

From: nunit-developer-***@lists.sourceforge.net [mailto:nunit-developer-***@lists.sourceforge.net] On Behalf Of Sambhaji Dhawan
Sent: Friday, August 01, 2008 3:39 PM
To: nunit-***@lists.sourceforge.net
Subject: [nunit-developer] Integration tests with Nunit

Hi All,

Can we use nunit for Integration testing to test the whole flow of the functionalities through out all tiers? How this can be done in case of a method returning nothing (void) e.g. method is as follows..

public void test()
{

call1();
call2();
call3();
}


Thanks in advance!

Kind regards,
Sambhaji.

Loading...