Want to learn NUnit's use

xiaoxiao2021-03-06  41

Today, I suddenly thought of practicing the unit test, so I downloaded the latest NUnit 2.2 test on www.nunit.org. How to use it? Hey, write code written so or you will not use unit test tools. Getting Started: Find some information about getting started:

It seems that 2.2 has made some modifications than 2.1: assertion is not the assertion mentioned in the first article, but assert, each method has changed, listing the following: assert.arequalassert.isfalsesert.isnullassert.isNULlastert.isnullastert.isNullastert . FAILASSERT.IGNORE makes it clear. Reference article:

Use NUnit to make cells in .NET Programming Get Test Infected with NUnit: Unit Test Your .Net Data Access Layer Adventures In C #: use nunit http://www.68asp.com/Article/CJ/200409/826.html

转载请注明原文地址:https://www.9cbs.com/read-72177.html

New Post(0)