C# Class Specish.NUnitSpecExtensions

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

Méthodes publiques

Méthode 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 méthode

public static ShouldBeEmpty ( this collection ) : void
collection this
Résultat void

ShouldBeEqualIgnoringCase() public static méthode

public static ShouldBeEqualIgnoringCase ( this actual, string expected ) : string
actual this
expected string
Résultat string

ShouldBeFalse() public static méthode

public static ShouldBeFalse ( this condition ) : void
condition this
Résultat void

ShouldBeGreaterThan() public static méthode

public static ShouldBeGreaterThan ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
Résultat IComparable

ShouldBeGreaterThanOrEqualTo() public static méthode

public static ShouldBeGreaterThanOrEqualTo ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
Résultat IComparable

ShouldBeLessThan() public static méthode

public static ShouldBeLessThan ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
Résultat IComparable

ShouldBeNull() public static méthode

public static ShouldBeNull ( this anObject ) : void
anObject this
Résultat void

ShouldBeOfType() public static méthode

public static ShouldBeOfType ( this actual, Type expected ) : void
actual this
expected System.Type
Résultat void

ShouldBeTheSameAs() public static méthode

public static ShouldBeTheSameAs ( this actual, object expected ) : object
actual this
expected object
Résultat object

ShouldBeThrownBy() public static méthode

public static ShouldBeThrownBy ( this exceptionType, MethodThatThrows method ) : Exception
exceptionType this
method MethodThatThrows
Résultat System.Exception

ShouldBeTrue() public static méthode

public static ShouldBeTrue ( this condition ) : void
condition this
Résultat void

ShouldContain() public static méthode

public static ShouldContain ( this actual, object expected ) : void
actual this
expected object
Résultat void

ShouldContain() public static méthode

public static ShouldContain ( this actual, string expected ) : void
actual this
expected string
Résultat void

ShouldContainErrorMessage() public static méthode

public static ShouldContainErrorMessage ( this exception, string expected ) : void
exception this
expected string
Résultat void

ShouldContainExactly() public static méthode

public static ShouldContainExactly ( this actual, int count, string pattern ) : void
actual this
count int
pattern string
Résultat void

ShouldEndWith() public static méthode

public static ShouldEndWith ( this actual, string expected ) : void
actual this
expected string
Résultat void

ShouldEqual() public static méthode

public static ShouldEqual ( this actual, object expected ) : object
actual this
expected object
Résultat object

ShouldEqualSqlDate() public static méthode

public static ShouldEqualSqlDate ( this actual, System.DateTime expected ) : void
actual this
expected System.DateTime
Résultat void

ShouldMatch() public static méthode

public static ShouldMatch ( this actual, string pattern ) : void
actual this
pattern string
Résultat void

ShouldNotBeEmpty() public static méthode

public static ShouldNotBeEmpty ( this collection ) : void
collection this
Résultat void

ShouldNotBeNull() public static méthode

public static ShouldNotBeNull ( this anObject ) : void
anObject this
Résultat void

ShouldNotBeNullOrEmpty() public static méthode

public static ShouldNotBeNullOrEmpty ( this aString ) : void
aString this
Résultat void

ShouldNotBeOfType() public static méthode

public static ShouldNotBeOfType ( this actual, Type expected ) : void
actual this
expected System.Type
Résultat void

ShouldNotBeTheSameAs() public static méthode

public static ShouldNotBeTheSameAs ( this actual, object expected ) : object
actual this
expected object
Résultat object

ShouldNotContain() public static méthode

public static ShouldNotContain ( this actual, string expected ) : void
actual this
expected string
Résultat void

ShouldNotEqual() public static méthode

public static ShouldNotEqual ( this actual, object expected ) : object
actual this
expected object
Résultat object

ShouldStartWith() public static méthode

public static ShouldStartWith ( this actual, string expected ) : void
actual this
expected string
Résultat void