Link to home
Start Free TrialLog in
Avatar of Dinesh Kumar
Dinesh KumarFlag for India

asked on

Unit testing and NUnit testing

Hi, I have lot of questions below in small chunks, please have time to answer them.

1) Does it same Unit testing and NUnit testing? if no what is the difference?

2) I need to write the following case in MVC3 (in mvc3, there is option for adding create a unit test project. Is it same as Nunit test project?)

The email address entered shall not be longer than 60 characters.

3)Please refer the image where I see that it contains only Unit test in VS 2010 2010 and not the NUnit test.

 Does that mean VS does not support NUnit Test? Or should I used NUnit Test from http://nunit.org/index.php?p=home

Thanks
Dinesh
Nunit-is-not-seen-here.JPG
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What type of project is MvcApplication1.Tests?  If it is a Test project created automatically, then you don't need NUnit, you have everything that you need with the Visual Studio 2010 test project.
Avatar of Dinesh Kumar

ASKER

But the following Asserts are not available in MSTest:

    * Assert.IsNaN
    * Assert.IsEmpty
    * Assert.IsNotEmpty
    * Assert.Greater
    * Assert.GreaterOrEqual
    * Assert.Less
    * Assert.LessOrEqual
    * Assert.IsAssignableFrom
    * Assert.IsNotAssignableFrom
    * CollectionAssert.IsEmpty
    * CollectionAssert.IsNotEmpty
    * StringAssert.AreEqualIgnoringCase
    * StringAssert.IsMatch
    * FileAssert.AreEqual
    * FileAssert.AreNotEqual
Moreover,  does Automated Testing need to be done using Database only?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
let me give more time to look for any other answer, if exists.