C# 클래스 NUnit.Framework.StringAssert

Basic Asserts on strings.
파일 보기 프로젝트 열기: nunit/nunit 1 사용 예제들

공개 메소드들

메소드 설명
AreEqualIgnoringCase ( string expected, string actual ) : void

Asserts that two strings are equal, without regard to case.

AreEqualIgnoringCase ( string expected, string actual, string message ) : void

Asserts that two strings are equal, without regard to case.

AreNotEqualIgnoringCase ( string expected, string actual ) : void

Asserts that two strings are not equal, without regard to case.

AreNotEqualIgnoringCase ( string expected, string actual, string message ) : void

Asserts that two strings are not equal, without regard to case.

Contains ( string expected, string actual ) : void

Asserts that a string is found within another string.

Contains ( string expected, string actual, string message ) : void

Asserts that a string is found within another string.

DoesNotContain ( string expected, string actual ) : void

Asserts that a string is found within another string.

DoesNotContain ( string expected, string actual, string message ) : void

Asserts that a string is not found within another string.

DoesNotEndWith ( string expected, string actual ) : void

Asserts that a string does not end with another string.

DoesNotEndWith ( string expected, string actual, string message ) : void

Asserts that a string does not end with another string.

DoesNotMatch ( string pattern, string actual ) : void

Asserts that a string does not match an expected regular expression pattern.

DoesNotMatch ( string pattern, string actual, string message ) : void

Asserts that a string does not match an expected regular expression pattern.

DoesNotStartWith ( string expected, string actual ) : void

Asserts that a string does not start with another string.

DoesNotStartWith ( string expected, string actual, string message ) : void

Asserts that a string does not start with another string.

EndsWith ( string expected, string actual ) : void

Asserts that a string ends with another string.

EndsWith ( string expected, string actual, string message ) : void

Asserts that a string ends with another string.

IsMatch ( string pattern, string actual ) : void

Asserts that a string matches an expected regular expression pattern.

IsMatch ( string pattern, string actual, string message ) : void

Asserts that a string matches an expected regular expression pattern.

StartsWith ( string expected, string actual ) : void

Asserts that a string starts with another string.

StartsWith ( string expected, string actual, string message ) : void

Asserts that a string starts with another string.

비공개 메소드들

메소드 설명
Equals ( object a, object b ) : bool
ReferenceEquals ( object a, object b ) : void

메소드 상세

AreEqualIgnoringCase() 정적인 공개 메소드

Asserts that two strings are equal, without regard to case.
static public AreEqualIgnoringCase ( string expected, string actual ) : void
expected string The expected string
actual string The actual string
리턴 void

AreEqualIgnoringCase() 정적인 공개 메소드

Asserts that two strings are equal, without regard to case.
static public AreEqualIgnoringCase ( string expected, string actual, string message ) : void
expected string The expected string
actual string The actual string
message string The message to display in case of failure
리턴 void

AreNotEqualIgnoringCase() 정적인 공개 메소드

Asserts that two strings are not equal, without regard to case.
static public AreNotEqualIgnoringCase ( string expected, string actual ) : void
expected string The expected string
actual string The actual string
리턴 void

AreNotEqualIgnoringCase() 정적인 공개 메소드

Asserts that two strings are not equal, without regard to case.
static public AreNotEqualIgnoringCase ( string expected, string actual, string message ) : void
expected string The expected string
actual string The actual string
message string The message to display in case of failure
리턴 void

Contains() 정적인 공개 메소드

Asserts that a string is found within another string.
static public Contains ( string expected, string actual ) : void
expected string The expected string
actual string The string to be examined
리턴 void

Contains() 정적인 공개 메소드

Asserts that a string is found within another string.
static public Contains ( string expected, string actual, string message ) : void
expected string The expected string
actual string The string to be examined
message string The message to display in case of failure
리턴 void

DoesNotContain() 정적인 공개 메소드

Asserts that a string is found within another string.
static public DoesNotContain ( string expected, string actual ) : void
expected string The expected string
actual string The string to be examined
리턴 void

DoesNotContain() 정적인 공개 메소드

Asserts that a string is not found within another string.
static public DoesNotContain ( string expected, string actual, string message ) : void
expected string The expected string
actual string The string to be examined
message string The message to display in case of failure
리턴 void

DoesNotEndWith() 정적인 공개 메소드

Asserts that a string does not end with another string.
static public DoesNotEndWith ( string expected, string actual ) : void
expected string The expected string
actual string The string to be examined
리턴 void

DoesNotEndWith() 정적인 공개 메소드

Asserts that a string does not end with another string.
static public DoesNotEndWith ( string expected, string actual, string message ) : void
expected string The expected string
actual string The string to be examined
message string The message to display in case of failure
리턴 void

DoesNotMatch() 정적인 공개 메소드

Asserts that a string does not match an expected regular expression pattern.
static public DoesNotMatch ( string pattern, string actual ) : void
pattern string The regex pattern to be used
actual string The actual string
리턴 void

DoesNotMatch() 정적인 공개 메소드

Asserts that a string does not match an expected regular expression pattern.
static public DoesNotMatch ( string pattern, string actual, string message ) : void
pattern string The regex pattern to be used
actual string The actual string
message string The message to display in case of failure
리턴 void

DoesNotStartWith() 정적인 공개 메소드

Asserts that a string does not start with another string.
static public DoesNotStartWith ( string expected, string actual ) : void
expected string The expected string
actual string The string to be examined
리턴 void

DoesNotStartWith() 정적인 공개 메소드

Asserts that a string does not start with another string.
static public DoesNotStartWith ( string expected, string actual, string message ) : void
expected string The expected string
actual string The string to be examined
message string The message to display in case of failure
리턴 void

EndsWith() 정적인 공개 메소드

Asserts that a string ends with another string.
static public EndsWith ( string expected, string actual ) : void
expected string The expected string
actual string The string to be examined
리턴 void

EndsWith() 정적인 공개 메소드

Asserts that a string ends with another string.
static public EndsWith ( string expected, string actual, string message ) : void
expected string The expected string
actual string The string to be examined
message string The message to display in case of failure
리턴 void

IsMatch() 정적인 공개 메소드

Asserts that a string matches an expected regular expression pattern.
static public IsMatch ( string pattern, string actual ) : void
pattern string The regex pattern to be matched
actual string The actual string
리턴 void

IsMatch() 정적인 공개 메소드

Asserts that a string matches an expected regular expression pattern.
static public IsMatch ( string pattern, string actual, string message ) : void
pattern string The regex pattern to be matched
actual string The actual string
message string The message to display in case of failure
리턴 void

StartsWith() 정적인 공개 메소드

Asserts that a string starts with another string.
static public StartsWith ( string expected, string actual ) : void
expected string The expected string
actual string The string to be examined
리턴 void

StartsWith() 정적인 공개 메소드

Asserts that a string starts with another string.
static public StartsWith ( string expected, string actual, string message ) : void
expected string The expected string
actual string The string to be examined
message string The message to display in case of failure
리턴 void