Unit testing

  • Thread starter Thread starter BigZero
  • Start date Start date
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.
 
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
 
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.
 
Back
Top