NUNIT
'NUnit' is an open source unit testing framework for Microsoft .NET. It serves the same purpose as JUnit does in the Java world, and is one of many in the xUnit family.
'NUnit.Forms' is an expansion to the core NUnit framework and is also open source. It specifically looks at expanding NUnit to be able to handle testing user interface elements in Windows Forms.
'NUnit.ASP' is an expansion to the core NUnit framework and is also open source. It specifically looks at expanding NUnit to be able to handle testing user interface elements in ASP.NET.
Example of an NUnit test fixture:
'using' NUnit.Framework;
[TestFixture]
'public' 'class' TestWikipediaExampleOfNUnit
{
[Test]
'public' 'void' TestMultiplication()
{
Assert.AreEqual(4, 2
★ 2, "Multiplication");
// Equivalently, NUnit offers a new (in v2.4)
// and more intuitive constraint-based assertion syntax:
Assert.That(4, Is.EqualTo(2
★ 2), "Multiplication constraint-based");
}
}
The NUnit framework discovers the method
TestWikipediaExampleOfNUnit.TestMultiplication() automatically by reflection.| Contents |
| See also |
| Literature |
| External links |
See also
★ Test automation
Literature
★ Andrew Hunt, David Thomas: ''Pragmatic Unit Testing in C# with NUnit'' The Pragmatic Bookshelf, Raleigh 2004, ISBN 0-9745140-2-0
★ Jim Newkirk, Alexei Vorontsov: ''Test-Driven Development in Microsoft .NET.'' Microsoft Press, Redmond 2004, ISBN 0-7356-1948-4
★ Bill Hamilton: ''NUnit Pocket Reference''. O'Reilly, Cambridge 2004, ISBN 0-596-00739-6
External links
★ SourceForge Site
★ NUnit homepage
★ NUnit.Forms homepage
★ NUnitAsp homepage
★ Article Improving Application Quality Using Test-Driven Development provides an introduction to TDD with concrete examples using Nunit
This article provided by Wikipedia. To edit the contents of this article, click here for original source.
psst.. try this: add to faves

العربية
中国
Français
Deutsch
Ελληνική
हिन्दी
Italiano
日本語
Português
Русский
Español



