CsUnit
Encyclopedia
csUnit is a unit testing framework for the .NET Framework
.NET Framework
The .NET Framework is a software framework that runs primarily on Microsoft Windows. It includes a large library and supports several programming languages which allows language interoperability...

. It is designed to work with any .NET compliant language. It has specifically been tested with C#, Visual Basic .NET
Visual Basic .NET
Visual Basic .NET , is an object-oriented computer programming language that can be viewed as an evolution of the classic Visual Basic , which is implemented on the .NET Framework...

, Managed C++
Managed Extensions for C++
Managed Extensions for C++ or just Managed C++ is a now deprecated Microsoft set of deviations from C++, including grammatical and syntactic extensions, keywords and attributes, to bring the C++ syntax and language to the .NET Framework...

, and J#
J Sharp
Visual J# |sharp]]') programming language is a discontinued transitional language for programmers of Java and Visual J++ languages, so they may use their existing knowledge and applications on .NET Framework....

. csUnit is open source
Open source
The term open source describes practices in production and development that promote access to the end product's source materials. Some consider open source a philosophy, others consider it a pragmatic methodology...

 and comes with a flexible license that allows cost-free inclusion in commercial closed-source products as well.

csUnit follows the concepts of other unit testing frameworks
Software framework
In computer programming, a software framework is an abstraction in which software providing generic functionality can be selectively changed by user code, thus providing application specific software...

 in the xUnit
XUnit
Various code-driven testing frameworks have come to be known collectively as xUnit. These frameworks allow testing of different elements of software, such as functions and classes...

 family and has had several releases since 2002. The tool offers a native GUI application, a command line, and addins for Visual Studio 2005 and Visual Studio 2008.

Starting with version 2.4 it also supports execution of NUnit
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.- Example :Example of an NUnit test fixture:using NUnit.Framework; [TestFixture]...

 tests without recompiling. This feature works for NUnit 2.4.7 (.NET 2.0 version).

csUnit supports .NET 3.5 and earlier versions, but does not support .NET 4.

csUnit has been integrated with ReSharper
ReSharper
ReSharper is a refactoring and productivity extension by JetBrains that extends native functionality of Microsoft Visual Studio 2003, 2005, 2008 and 2010....

.

Special features

Along with the standard features, csUnit offers abilities that are uncommon in other unit testing frameworks for .NET:
  • Categories to group included, excluded tests
  • ExpectedException working with concrete instances rather than type only
  • Out of the box addins for Visual Studio 2005 and 2008
  • A tab for simple performance base lining
  • A very rich set of assertions, continuously expanded
  • Rich set of attributes for implementing tests
  • Parameterized testing, data-driven testing
  • Search abilities, saving time when test suites have thousands of tests

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK