C# Class Specish.NUnitSpecExtensions

Extention methods that make unit test asserts more fluid and readable. Modified from CodeIncubator: http://code.google.com/p/codeincubator/
Mostrar archivo Open project: ignu/specish

Public Methods

Method Description
ShouldBeEmpty ( this collection ) : void
ShouldBeEqualIgnoringCase ( this actual, string expected ) : string
ShouldBeFalse ( this condition ) : void
ShouldBeGreaterThan ( this arg1, IComparable arg2 ) : IComparable
ShouldBeGreaterThanOrEqualTo ( this arg1, IComparable arg2 ) : IComparable
ShouldBeLessThan ( this arg1, IComparable arg2 ) : IComparable
ShouldBeNull ( this anObject ) : void
ShouldBeOfType ( this actual, Type expected ) : void
ShouldBeTheSameAs ( this actual, object expected ) : object
ShouldBeThrownBy ( this exceptionType, MethodThatThrows method ) : Exception
ShouldBeTrue ( this condition ) : void
ShouldContain ( this actual, object expected ) : void
ShouldContain ( this actual, string expected ) : void
ShouldContainErrorMessage ( this exception, string expected ) : void
ShouldContainExactly ( this actual, int count, string pattern ) : void
ShouldEndWith ( this actual, string expected ) : void
ShouldEqual ( this actual, object expected ) : object
ShouldEqualSqlDate ( this actual, System.DateTime expected ) : void
ShouldMatch ( this actual, string pattern ) : void
ShouldNotBeEmpty ( this collection ) : void
ShouldNotBeNull ( this anObject ) : void
ShouldNotBeNullOrEmpty ( this aString ) : void
ShouldNotBeOfType ( this actual, Type expected ) : void
ShouldNotBeTheSameAs ( this actual, object expected ) : object
ShouldNotContain ( this actual, string expected ) : void
ShouldNotEqual ( this actual, object expected ) : object
ShouldStartWith ( this actual, string expected ) : void

Method Details

ShouldBeEmpty() public static method

public static ShouldBeEmpty ( this collection ) : void
collection this
return void

ShouldBeEqualIgnoringCase() public static method

public static ShouldBeEqualIgnoringCase ( this actual, string expected ) : string
actual this
expected string
return string

ShouldBeFalse() public static method

public static ShouldBeFalse ( this condition ) : void
condition this
return void

ShouldBeGreaterThan() public static method

public static ShouldBeGreaterThan ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
return IComparable

ShouldBeGreaterThanOrEqualTo() public static method

public static ShouldBeGreaterThanOrEqualTo ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
return IComparable

ShouldBeLessThan() public static method

public static ShouldBeLessThan ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
return IComparable

ShouldBeNull() public static method

public static ShouldBeNull ( this anObject ) : void
anObject this
return void

ShouldBeOfType() public static method

public static ShouldBeOfType ( this actual, Type expected ) : void
actual this
expected System.Type
return void

ShouldBeTheSameAs() public static method

public static ShouldBeTheSameAs ( this actual, object expected ) : object
actual this
expected object
return object

ShouldBeThrownBy() public static method

public static ShouldBeThrownBy ( this exceptionType, MethodThatThrows method ) : Exception
exceptionType this
method MethodThatThrows
return System.Exception

ShouldBeTrue() public static method

public static ShouldBeTrue ( this condition ) : void
condition this
return void

ShouldContain() public static method

public static ShouldContain ( this actual, object expected ) : void
actual this
expected object
return void

ShouldContain() public static method

public static ShouldContain ( this actual, string expected ) : void
actual this
expected string
return void

ShouldContainErrorMessage() public static method

public static ShouldContainErrorMessage ( this exception, string expected ) : void
exception this
expected string
return void

ShouldContainExactly() public static method

public static ShouldContainExactly ( this actual, int count, string pattern ) : void
actual this
count int
pattern string
return void

ShouldEndWith() public static method

public static ShouldEndWith ( this actual, string expected ) : void
actual this
expected string
return void

ShouldEqual() public static method

public static ShouldEqual ( this actual, object expected ) : object
actual this
expected object
return object

ShouldEqualSqlDate() public static method

public static ShouldEqualSqlDate ( this actual, System.DateTime expected ) : void
actual this
expected System.DateTime
return void

ShouldMatch() public static method

public static ShouldMatch ( this actual, string pattern ) : void
actual this
pattern string
return void

ShouldNotBeEmpty() public static method

public static ShouldNotBeEmpty ( this collection ) : void
collection this
return void

ShouldNotBeNull() public static method

public static ShouldNotBeNull ( this anObject ) : void
anObject this
return void

ShouldNotBeNullOrEmpty() public static method

public static ShouldNotBeNullOrEmpty ( this aString ) : void
aString this
return void

ShouldNotBeOfType() public static method

public static ShouldNotBeOfType ( this actual, Type expected ) : void
actual this
expected System.Type
return void

ShouldNotBeTheSameAs() public static method

public static ShouldNotBeTheSameAs ( this actual, object expected ) : object
actual this
expected object
return object

ShouldNotContain() public static method

public static ShouldNotContain ( this actual, string expected ) : void
actual this
expected string
return void

ShouldNotEqual() public static method

public static ShouldNotEqual ( this actual, object expected ) : object
actual this
expected object
return object

ShouldStartWith() public static method

public static ShouldStartWith ( this actual, string expected ) : void
actual this
expected string
return void