Table of Contents
NUnitEx
- ExtensionType:
- Addon
- Description:
- NUnit constraint syntax based on extension methods
- License:
- LGPL
- NUnitVersion:
- 2.5 plus
- PlatformSupport:
- .NET 3.5, MS or Mono.
This project is now obsolete and has been superseded by Sharp Tests Ex
The intention of NUnitEx is write short strongly typed assertions where the Visual-Studio IDE intellisense is “your friend”.actual.Should().Be.EqualTo(expected); const string somethig = "something"; somethig.Should().Contain("some"); somethig.Should().Not.Contain("also"); somethig.ToUpperInvariant().Should().Not.Contain("some"); somethig.Should() .StartWith("so") .And .EndWith("ing") .And .Contain("meth"); // Pure .NET lambda assertions var y = new[] { 1, 2 }; var z = new[] { 2, 1 }; 1.Should().Satisfy(x => x == y[0] && x == z[1]);
The full syntax overview is available here.
Download and Installation
Download binaries.
Check out sources through your SVN client at http://nunitex.googlecode.com/svn/trunk/
Other Information
NUnitEx is easy extensible so don't hesitate to send us your proposal in our issue tracker.