Six features of. NET Testing Tool NUnit2.5

Source: Internet
Author: User

Although only a small version is changed, the previous version is 2.4.8). After nearly one year of development, NUnit2.5 provides many new functions. As a NUnit developer and consultant, Charlie Poole wrote a feature list.

. NET Testing Tool NUnit2.5 feature 1

Data-driven testing. The test method may require parameters and data, which may provide inline, independent methods or classes in multiple ways, or any way. This feature provides a simple method to express a group of instances for use in a single test case during running.

. NET Testing Tool NUnit2.5 Feature 2

Principles. Traditional instance-based tests allow you to select one or more groups of values for testing similar programs. On the other hand, the principle allows you to express general requirements. You can write a test that can pass any value to it as long as these values meet the constraints.

. NET Testing Tool NUnit2.5 feature 3

Inline expect exception test. Introduce Assert. throws assertions and more powerful constraint expressions Throws. exception, Throws. instanceOf and Throws. after TypeOf, the exception test logic can now be moved into any tests or other necessary assertions.

. NET Testing Tool NUnit2.5 Feature 4

Wildcard support and cause 5Lambda expression support.

. NET Testing Tool NUnit2.5 feature 5

Select an out-of-process execution and runtime. NUnit2.5 extends the AppDomain Isolation Mode to run in one or more isolation processes. In addition to isolation, this allows the. NET runtime used for testing to be different from the. NET runtime that NUnit is running. NET runtime.

. NET Testing Tool NUnit2.5 feature 6

Source code display. On the errors and failures Tab Of the Gui, the new stack trace displays the source code of the starting issue, as long as the source code is accessible and the program compilation carries debugging information. Currently, C # syntax coloring is supported.

The release notes provide more details and introduce other features.

SimoneBusoli points out that the new constraint condition model has a strong expression ability. In addition, he prefers new assertions and modifiers used to customize these assertions. He specifically pointed out that "It is really good to make modifiers available for inline methods. In many cases, you need to compare the two objects that contain or have equal relationships, and you want to rewrite the concepts that these objects are equal in a specific field ."

OlofBjarnason found that the new Timeout attribute is very useful in developing loop-related code. In the past, when an error occurs in an infinite loop, you must kill the NUnit process. Now you can use the Timeout attribute to stop the test.

In addition, Jamie Cansdale released the new version TestDriven. NET, which allows developers to run their NUnit and other frameworks in Visual Studio ).

Charlie promises to return to smaller versions and more frequent releases in the future. NUnit3.0 Road Map pdf format) promises to support more test runners, including Web runners, which can perform tests from Web servers ). The test engine layer supports distributed and parallel testing run modes, out-of-order testing, and transaction-based testing.

Others. NET unit testing tools include MBunit, CSUnit, and xUnit. net, NBehave, and Gallio. Gallio is an open, scalable, and neutral test runner. The designer wants it to support all.. NET Testing Tool.

  1. Mod_aspdotnet implements Apache and supports ASP. NET + JSP
  2. Apache's magic weapon for supporting ASP. NET 2.0: mod_aspdotnet
  3. Make Apache support ASP. NET (Apache 2.0 or above)
  4. XML Web Service Method of ASP. NET
  5. XML data displayed on the ASP. NET page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.