Unit testing


B

BigZero

Hello ppl,

I need to write unit test case for my desktop application (Windows
App), the application takes many different input,
like user name and password, server address port etc.....

i wanted to write config file or text file that contains the
information about login to server.
is there any that i can do by writing the C# code and run that test
suite in NUnit GUI that tells me that test passed or failed.


~thanks
Vijay.
 
Ad

Advertisements

H

Hans Kesting

BigZero submitted this idea :
Hello ppl,

I need to write unit test case for my desktop application (Windows
App), the application takes many different input,
like user name and password, server address port etc.....

i wanted to write config file or text file that contains the
information about login to server.
is there any that i can do by writing the C# code and run that test
suite in NUnit GUI that tells me that test passed or failed.


~thanks
Vijay.

For the built-in unittests, there is an Assert class with a lot of
(static) methods in the form of "this should be true, else the unittest
fails".
I expect that nunit also has such a class, it might even have the same
name.

Hans Kesting
 
Ad

Advertisements

V

Vm

For the built-in unittests, there is an Assert class with a lot of
(static) methods in the form of "this should be true, else the unittest
fails".
I expect that nunit also has such a class, it might even have the same
name.

Hans Kesting


Thanks Hans,

I m using different way to solve this, i m hooking to event and
handling that event. if event raised that means test passed or test
failed,,


~thanks
Vijay.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top