StringAssert StringAssert StringAssert Class

Definition

The string assert.

public sealed class StringAssert
type StringAssert = class
Public NotInheritable Class StringAssert
Inheritance
StringAssertStringAssertStringAssert

Properties

That That That

Gets the singleton instance of the CollectionAssert functionality.

Methods

Contains(String, String) Contains(String, String) Contains(String, String)

Tests whether the specified string contains the specified substring and throws an exception if the substring does not occur within the test string.

Contains(String, String, String) Contains(String, String, String) Contains(String, String, String)

Tests whether the specified string contains the specified substring and throws an exception if the substring does not occur within the test string.

Contains(String, String, String, Object[]) Contains(String, String, String, Object[]) Contains(String, String, String, Object[])

Tests whether the specified string contains the specified substring and throws an exception if the substring does not occur within the test string.

DoesNotMatch(String, Regex) DoesNotMatch(String, Regex) DoesNotMatch(String, Regex)

Tests whether the specified string does not match a regular expression and throws an exception if the string matches the expression.

DoesNotMatch(String, Regex, String) DoesNotMatch(String, Regex, String) DoesNotMatch(String, Regex, String)

Tests whether the specified string does not match a regular expression and throws an exception if the string matches the expression.

DoesNotMatch(String, Regex, String, Object[]) DoesNotMatch(String, Regex, String, Object[]) DoesNotMatch(String, Regex, String, Object[])

Tests whether the specified string does not match a regular expression and throws an exception if the string matches the expression.

EndsWith(String, String) EndsWith(String, String) EndsWith(String, String)

Tests whether the specified string ends with the specified substring and throws an exception if the test string does not end with the substring.

EndsWith(String, String, String) EndsWith(String, String, String) EndsWith(String, String, String)

Tests whether the specified string ends with the specified substring and throws an exception if the test string does not end with the substring.

EndsWith(String, String, String, Object[]) EndsWith(String, String, String, Object[]) EndsWith(String, String, String, Object[])

Tests whether the specified string ends with the specified substring and throws an exception if the test string does not end with the substring.

Matches(String, Regex) Matches(String, Regex) Matches(String, Regex)

Tests whether the specified string matches a regular expression and throws an exception if the string does not match the expression.

Matches(String, Regex, String) Matches(String, Regex, String) Matches(String, Regex, String)

Tests whether the specified string matches a regular expression and throws an exception if the string does not match the expression.

Matches(String, Regex, String, Object[]) Matches(String, Regex, String, Object[]) Matches(String, Regex, String, Object[])

Tests whether the specified string matches a regular expression and throws an exception if the string does not match the expression.

StartsWith(String, String) StartsWith(String, String) StartsWith(String, String)

Tests whether the specified string begins with the specified substring and throws an exception if the test string does not start with the substring.

StartsWith(String, String, String) StartsWith(String, String, String) StartsWith(String, String, String)

Tests whether the specified string begins with the specified substring and throws an exception if the test string does not start with the substring.

StartsWith(String, String, String, Object[]) StartsWith(String, String, String, Object[]) StartsWith(String, String, String, Object[])

Tests whether the specified string begins with the specified substring and throws an exception if the test string does not start with the substring.

Applies to