C# Класс Specish.NUnitSpecExtensions

Extention methods that make unit test asserts more fluid and readable. Modified from CodeIncubator: http://code.google.com/p/codeincubator/
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ShouldBeEmpty() публичный статический Метод

public static ShouldBeEmpty ( this collection ) : void
collection this
Результат void

ShouldBeEqualIgnoringCase() публичный статический Метод

public static ShouldBeEqualIgnoringCase ( this actual, string expected ) : string
actual this
expected string
Результат string

ShouldBeFalse() публичный статический Метод

public static ShouldBeFalse ( this condition ) : void
condition this
Результат void

ShouldBeGreaterThan() публичный статический Метод

public static ShouldBeGreaterThan ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
Результат IComparable

ShouldBeGreaterThanOrEqualTo() публичный статический Метод

public static ShouldBeGreaterThanOrEqualTo ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
Результат IComparable

ShouldBeLessThan() публичный статический Метод

public static ShouldBeLessThan ( this arg1, IComparable arg2 ) : IComparable
arg1 this
arg2 IComparable
Результат IComparable

ShouldBeNull() публичный статический Метод

public static ShouldBeNull ( this anObject ) : void
anObject this
Результат void

ShouldBeOfType() публичный статический Метод

public static ShouldBeOfType ( this actual, Type expected ) : void
actual this
expected System.Type
Результат void

ShouldBeTheSameAs() публичный статический Метод

public static ShouldBeTheSameAs ( this actual, object expected ) : object
actual this
expected object
Результат object

ShouldBeThrownBy() публичный статический Метод

public static ShouldBeThrownBy ( this exceptionType, MethodThatThrows method ) : Exception
exceptionType this
method MethodThatThrows
Результат System.Exception

ShouldBeTrue() публичный статический Метод

public static ShouldBeTrue ( this condition ) : void
condition this
Результат void

ShouldContain() публичный статический Метод

public static ShouldContain ( this actual, object expected ) : void
actual this
expected object
Результат void

ShouldContain() публичный статический Метод

public static ShouldContain ( this actual, string expected ) : void
actual this
expected string
Результат void

ShouldContainErrorMessage() публичный статический Метод

public static ShouldContainErrorMessage ( this exception, string expected ) : void
exception this
expected string
Результат void

ShouldContainExactly() публичный статический Метод

public static ShouldContainExactly ( this actual, int count, string pattern ) : void
actual this
count int
pattern string
Результат void

ShouldEndWith() публичный статический Метод

public static ShouldEndWith ( this actual, string expected ) : void
actual this
expected string
Результат void

ShouldEqual() публичный статический Метод

public static ShouldEqual ( this actual, object expected ) : object
actual this
expected object
Результат object

ShouldEqualSqlDate() публичный статический Метод

public static ShouldEqualSqlDate ( this actual, System.DateTime expected ) : void
actual this
expected System.DateTime
Результат void

ShouldMatch() публичный статический Метод

public static ShouldMatch ( this actual, string pattern ) : void
actual this
pattern string
Результат void

ShouldNotBeEmpty() публичный статический Метод

public static ShouldNotBeEmpty ( this collection ) : void
collection this
Результат void

ShouldNotBeNull() публичный статический Метод

public static ShouldNotBeNull ( this anObject ) : void
anObject this
Результат void

ShouldNotBeNullOrEmpty() публичный статический Метод

public static ShouldNotBeNullOrEmpty ( this aString ) : void
aString this
Результат void

ShouldNotBeOfType() публичный статический Метод

public static ShouldNotBeOfType ( this actual, Type expected ) : void
actual this
expected System.Type
Результат void

ShouldNotBeTheSameAs() публичный статический Метод

public static ShouldNotBeTheSameAs ( this actual, object expected ) : object
actual this
expected object
Результат object

ShouldNotContain() публичный статический Метод

public static ShouldNotContain ( this actual, string expected ) : void
actual this
expected string
Результат void

ShouldNotEqual() публичный статический Метод

public static ShouldNotEqual ( this actual, object expected ) : object
actual this
expected object
Результат object

ShouldStartWith() публичный статический Метод

public static ShouldStartWith ( this actual, string expected ) : void
actual this
expected string
Результат void