C# 클래스 Microsoft.WindowsAzure.MobileServices.TestFramework.Assert

Assertions that will throw InvalidOperationExceptions when their conditions have not been met.
파일 보기 프로젝트 열기: Azure/azure-mobile-apps-net-client

공개 메소드들

메소드 설명
AreEqual ( object a, object b ) : void

Assert that two values are equal.

AreEqual ( object a, object b, string message ) : void

Assert that two values are equal.

AreEquivalent ( IEnumerable a, IEnumerable b ) : void
AreEquivalent ( IEnumerable a, IEnumerable b, string message ) : void
AreNotEqual ( object a, object b ) : void

Assert that two values are not equal.

AreNotEqual ( object a, object b, string message ) : void

Assert that two values are not equal.

AreSame ( object a, object b ) : void

Assert that two values are the same.

AreSame ( object a, object b, string message ) : void

Assert that two values are the same.

Contains ( string text, string substring ) : void

Assert that a substring is present in the text.

Contains ( string text, string substring, string message ) : void

Assert that a substring is present in the text.

EndsWith ( string text, string substring ) : void

Assert that a string ends with another.

EndsWith ( string text, string substring, string message ) : void

Assert that a string ends with another.

Fail ( string message ) : void

Force a failure.

IsFalse ( bool condition ) : void

Assert that a condition is false.

IsFalse ( bool condition, string message ) : void

Assert that a condition is false.

IsNotNull ( object value ) : void
IsNotNull ( object value, string message ) : void
IsNull ( object value ) : void
IsNull ( object value, string message ) : void
IsTrue ( bool condition ) : void

Assert that a condition is true.

IsTrue ( bool condition, string message ) : void

Assert that a condition is true.

StartsWith ( string text, string substring ) : void

Assert that a string starts with another.

StartsWith ( string text, string substring, string message ) : void

Assert that a string starts with another.

비공개 메소드들

메소드 설명
GetProperties ( object obj ) : string

메소드 상세

AreEqual() 공개 정적인 메소드

Assert that two values are equal.
public static AreEqual ( object a, object b ) : void
a object The first value.
b object The second value.
리턴 void

AreEqual() 공개 정적인 메소드

Assert that two values are equal.
public static AreEqual ( object a, object b, string message ) : void
a object The first value.
b object The second value.
message string Details about the assertion.
리턴 void

AreEquivalent() 공개 정적인 메소드

public static AreEquivalent ( IEnumerable a, IEnumerable b ) : void
a IEnumerable
b IEnumerable
리턴 void

AreEquivalent() 공개 정적인 메소드

public static AreEquivalent ( IEnumerable a, IEnumerable b, string message ) : void
a IEnumerable
b IEnumerable
message string
리턴 void

AreNotEqual() 공개 정적인 메소드

Assert that two values are not equal.
public static AreNotEqual ( object a, object b ) : void
a object The first value.
b object The second value.
리턴 void

AreNotEqual() 공개 정적인 메소드

Assert that two values are not equal.
public static AreNotEqual ( object a, object b, string message ) : void
a object The first value.
b object The second value.
message string Details about the assertion.
리턴 void

AreSame() 공개 정적인 메소드

Assert that two values are the same.
public static AreSame ( object a, object b ) : void
a object The first value.
b object The second value.
리턴 void

AreSame() 공개 정적인 메소드

Assert that two values are the same.
public static AreSame ( object a, object b, string message ) : void
a object The first value.
b object The second value.
message string Details about the assertion.
리턴 void

Contains() 공개 정적인 메소드

Assert that a substring is present in the text.
public static Contains ( string text, string substring ) : void
text string The text to search.
substring string The substring to find.
리턴 void

Contains() 공개 정적인 메소드

Assert that a substring is present in the text.
public static Contains ( string text, string substring, string message ) : void
text string The text to search.
substring string The substring to find.
message string Details about the assertion.
리턴 void

EndsWith() 공개 정적인 메소드

Assert that a string ends with another.
public static EndsWith ( string text, string substring ) : void
text string The text to search.
substring string The substring to find.
리턴 void

EndsWith() 공개 정적인 메소드

Assert that a string ends with another.
public static EndsWith ( string text, string substring, string message ) : void
text string The text to search.
substring string The substring to find.
message string Details about the assertion.
리턴 void

Fail() 공개 정적인 메소드

Force a failure.
public static Fail ( string message ) : void
message string Details about the assertion.
리턴 void

IsFalse() 공개 정적인 메소드

Assert that a condition is false.
public static IsFalse ( bool condition ) : void
condition bool The condition to check.
리턴 void

IsFalse() 공개 정적인 메소드

Assert that a condition is false.
public static IsFalse ( bool condition, string message ) : void
condition bool The condition to check.
message string Details about the assertion.
리턴 void

IsNotNull() 공개 정적인 메소드

public static IsNotNull ( object value ) : void
value object
리턴 void

IsNotNull() 공개 정적인 메소드

public static IsNotNull ( object value, string message ) : void
value object
message string
리턴 void

IsNull() 공개 정적인 메소드

public static IsNull ( object value ) : void
value object
리턴 void

IsNull() 공개 정적인 메소드

public static IsNull ( object value, string message ) : void
value object
message string
리턴 void

IsTrue() 공개 정적인 메소드

Assert that a condition is true.
public static IsTrue ( bool condition ) : void
condition bool The condition to check.
리턴 void

IsTrue() 공개 정적인 메소드

Assert that a condition is true.
public static IsTrue ( bool condition, string message ) : void
condition bool The condition to check.
message string Details about the assertion.
리턴 void

StartsWith() 공개 정적인 메소드

Assert that a string starts with another.
public static StartsWith ( string text, string substring ) : void
text string The text to search.
substring string The substring to find.
리턴 void

StartsWith() 공개 정적인 메소드

Assert that a string starts with another.
public static StartsWith ( string text, string substring, string message ) : void
text string The text to search.
substring string The substring to find.
message string Details about the assertion.
리턴 void