C# 클래스 Rubberduck.UnitTesting.AssertClass

상속: IAssert
파일 보기 프로젝트 열기: retailcoder/Rubberduck 1 사용 예제들

공개 메소드들

메소드 설명
AreEqual ( object expected, object actual, string message = null ) : void

Verifies that two specified objects are equal. The assertion fails if the objects are not equal.

expected and actual must be the same type.

AreNotEqual ( object expected, object actual, string message = null ) : void

Verifies that two specified objects are not equal. The assertion fails if the objects are equal.

expected and actual must be the same type.

AreNotSame ( object expected, object actual, string message = null ) : void

Verifies that two specified object variables refer to different objects. The assertion fails if they refer to the same object.

AreSame ( object expected, object actual, string message = null ) : void

Verifies that two specified object variables refer to the same object. The assertion fails if they refer to different objects.

Fail ( string message = null ) : void

Fails the assertion without checking any conditions.

Inconclusive ( string message = null ) : void

Indicates that the assertion cannot be verified.

IsFalse ( bool condition, string message = null ) : void

Verifies that the specified condition is false. The assertion fails if the condition is true.

IsNotNothing ( object value, string message = null ) : void

Verifies that the specified object is not Nothing. The assertion fails if it is Nothing.

IsNothing ( object value, string message = null ) : void

Verifies that the specified object is Nothing. The assertion fails if it is not Nothing.

IsTrue ( bool condition, string message = null ) : void

Verifies that the specified condition is true. The assertion fails if the condition is false.

메소드 상세

AreEqual() 공개 메소드

Verifies that two specified objects are equal. The assertion fails if the objects are not equal.
expected and actual must be the same type.
public AreEqual ( object expected, object actual, string message = null ) : void
expected object The expected value.
actual object The actual value.
message string An optional message to display if the assertion fails.
리턴 void

AreNotEqual() 공개 메소드

Verifies that two specified objects are not equal. The assertion fails if the objects are equal.
expected and actual must be the same type.
public AreNotEqual ( object expected, object actual, string message = null ) : void
expected object The expected value.
actual object The actual value.
message string An optional message to display if the assertion fails.
리턴 void

AreNotSame() 공개 메소드

Verifies that two specified object variables refer to different objects. The assertion fails if they refer to the same object.
public AreNotSame ( object expected, object actual, string message = null ) : void
expected object The expected reference.
actual object The actual reference.
message string An optional message to display if the assertion fails.
리턴 void

AreSame() 공개 메소드

Verifies that two specified object variables refer to the same object. The assertion fails if they refer to different objects.
public AreSame ( object expected, object actual, string message = null ) : void
expected object The expected reference.
actual object The actual reference.
message string An optional message to display if the assertion fails.
리턴 void

Fail() 공개 메소드

Fails the assertion without checking any conditions.
public Fail ( string message = null ) : void
message string An optional message to display.
리턴 void

Inconclusive() 공개 메소드

Indicates that the assertion cannot be verified.
public Inconclusive ( string message = null ) : void
message string An optional message to display.
리턴 void

IsFalse() 공개 메소드

Verifies that the specified condition is false. The assertion fails if the condition is true.
public IsFalse ( bool condition, string message = null ) : void
condition bool Any Boolean value or expression.
message string An optional message to display if the assertion fails.
리턴 void

IsNotNothing() 공개 메소드

Verifies that the specified object is not Nothing. The assertion fails if it is Nothing.
public IsNotNothing ( object value, string message = null ) : void
value object The object to verify.
message string An optional message to display if the assertion fails.
리턴 void

IsNothing() 공개 메소드

Verifies that the specified object is Nothing. The assertion fails if it is not Nothing.
public IsNothing ( object value, string message = null ) : void
value object The object to verify.
message string An optional message to display if the assertion fails.
리턴 void

IsTrue() 공개 메소드

Verifies that the specified condition is true. The assertion fails if the condition is false.
public IsTrue ( bool condition, string message = null ) : void
condition bool Any Boolean value or expression.
message string An optional message to display if the assertion fails.
리턴 void