C# Class NUnit.Framework.ShouldExtensions

Simple extension methods allowing us to use NUnit constraints as: "foo".Should(Be.StringContaining("o"));
ShouldExtensions.Should and ShouldExtensions.ShouldNot are the only methods that are really required to give us Should() syntax with NUnit. We also add a number of Should*() helper methods, however, so you can say things like list.ShouldContain("rover") instead of list.Should(Contain.Item("rover"))
Show file Open project: benfoster/ImageResizer.FluentExtensions

Public Methods

Method Description
Should ( this o, IResolveConstraint constraint ) : void
ShouldNot ( this o, Constraint constraint ) : void

Method Details

Should() public static method

public static Should ( this o, IResolveConstraint constraint ) : void
o this
constraint IResolveConstraint
return void

ShouldNot() public static method

public static ShouldNot ( this o, Constraint constraint ) : void
o this
constraint Constraint
return void