C# 클래스 Xunit.Assert

파일 보기 프로젝트 열기: docevaad/Chain 1 사용 예제들

공개 메소드들

메소드 설명
False ( bool condition ) : void

Verifies that the condition is false.

False ( bool condition, string userMessage ) : void

Verifies that the condition is false.

IsFalse ( bool condition, string userMessage ) : void
IsTrue ( bool condition, string userMessage ) : void
NotNull ( object @object, string userMessage ) : void

Verifies that an object reference is not null.

Null ( object @object, string userMessage ) : void

Verifies that an object reference is null.

True ( bool condition ) : void

Verifies that an expression is true.

True ( bool condition, string userMessage ) : void

Verifies that an expression is true.

비공개 메소드들

메소드 설명
IsNull ( object @object, string userMessage ) : void
RecordException ( System.Action testCode ) : Exception
RecordException ( Func testCode ) : Exception
RecordException ( Func testCode ) : Exception
RecordExceptionAsync ( Func testCode ) : Task

메소드 상세

False() 공개 정적인 메소드

Verifies that the condition is false.
Thrown if the condition is not false
public static False ( bool condition ) : void
condition bool The condition to be tested
리턴 void

False() 공개 정적인 메소드

Verifies that the condition is false.
Thrown if the condition is not false
public static False ( bool condition, string userMessage ) : void
condition bool The condition to be tested
userMessage string The message to show when the condition is not false
리턴 void

IsFalse() 공개 정적인 메소드

public static IsFalse ( bool condition, string userMessage ) : void
condition bool
userMessage string
리턴 void

IsTrue() 공개 정적인 메소드

public static IsTrue ( bool condition, string userMessage ) : void
condition bool
userMessage string
리턴 void

NotNull() 공개 정적인 메소드

Verifies that an object reference is not null.
Thrown when the object is not null
public static NotNull ( object @object, string userMessage ) : void
@object object
userMessage string
리턴 void

Null() 공개 정적인 메소드

Verifies that an object reference is null.
Thrown when the object reference is not null
public static Null ( object @object, string userMessage ) : void
@object object
userMessage string
리턴 void

True() 공개 정적인 메소드

Verifies that an expression is true.
Thrown when the condition is false
public static True ( bool condition ) : void
condition bool The condition to be inspected
리턴 void

True() 공개 정적인 메소드

Verifies that an expression is true.
Thrown when the condition is false
public static True ( bool condition, string userMessage ) : void
condition bool The condition to be inspected
userMessage string The message to be shown when the condition is false
리턴 void