C# 클래스 Specish.NUnitSpecExtensions

Extention methods that make unit test asserts more fluid and readable. Modified from CodeIncubator: http://code.google.com/p/codeincubator/
파일 보기 프로젝트 열기: ignu/specish

공개 메소드들

메소드 설명
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