IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Basic Asserts on strings. More...
Static Public Member Functions | |
static new bool | Equals (object a, object b) |
The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function. More... | |
static new void | ReferenceEquals (object a, object b) |
override the default ReferenceEquals to throw an AssertionException. This implementation makes sure there is no mistake in calling this function as part of Assert. More... | |
static void | Contains (string expected, string actual, string message, params object[] args) |
Asserts that a string is found within another string. More... | |
static void | Contains (string expected, string actual) |
Asserts that a string is found within another string. More... | |
static void | DoesNotContain (string expected, string actual, string message, params object[] args) |
Asserts that a string is not found within another string. More... | |
static void | DoesNotContain (string expected, string actual) |
Asserts that a string is found within another string. More... | |
static void | StartsWith (string expected, string actual, string message, params object[] args) |
Asserts that a string starts with another string. More... | |
static void | StartsWith (string expected, string actual) |
Asserts that a string starts with another string. More... | |
static void | DoesNotStartWith (string expected, string actual, string message, params object[] args) |
Asserts that a string does not start with another string. More... | |
static void | DoesNotStartWith (string expected, string actual) |
Asserts that a string does not start with another string. More... | |
static void | EndsWith (string expected, string actual, string message, params object[] args) |
Asserts that a string ends with another string. More... | |
static void | EndsWith (string expected, string actual) |
Asserts that a string ends with another string. More... | |
static void | DoesNotEndWith (string expected, string actual, string message, params object[] args) |
Asserts that a string does not end with another string. More... | |
static void | DoesNotEndWith (string expected, string actual) |
Asserts that a string does not end with another string. More... | |
static void | AreEqualIgnoringCase (string expected, string actual, string message, params object[] args) |
Asserts that two strings are equal, without regard to case. More... | |
static void | AreEqualIgnoringCase (string expected, string actual) |
Asserts that two strings are equal, without regard to case. More... | |
static void | AreNotEqualIgnoringCase (string expected, string actual, string message, params object[] args) |
Asserts that two strings are not equal, without regard to case. More... | |
static void | AreNotEqualIgnoringCase (string expected, string actual) |
Asserts that two strings are not equal, without regard to case. More... | |
static void | IsMatch (string pattern, string actual, string message, params object[] args) |
Asserts that a string matches an expected regular expression pattern. More... | |
static void | IsMatch (string pattern, string actual) |
Asserts that a string matches an expected regular expression pattern. More... | |
static void | DoesNotMatch (string pattern, string actual, string message, params object[] args) |
Asserts that a string does not match an expected regular expression pattern. More... | |
static void | DoesNotMatch (string pattern, string actual) |
Asserts that a string does not match an expected regular expression pattern. More... | |
Basic Asserts on strings.
|
inlinestatic |
The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function.
a | |
b |
|
inlinestatic |
override the default ReferenceEquals to throw an AssertionException. This implementation makes sure there is no mistake in calling this function as part of Assert.
a | |
b |
|
inlinestatic |
Asserts that a string is found within another string.
expected | The expected string |
actual | The string to be examined |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
References NUnit.Framework.Does.Contain(), and NUnit.Framework.Assert.That().
Referenced by NUnit.Framework.Assertions.StringAssertTests.Contains(), NUnit.Framework.Assertions.StringAssertTests.ContainsFails(), NUnit.Framework.Assertions.LessFixture.FailureMessage(), NUnit.Framework.Assertions.GreaterEqualFixture.FailureMessage(), and NUnit.Framework.Tests.AssertSyntaxTests.SubstringTests().
|
inlinestatic |
Asserts that a string is found within another string.
expected | The expected string |
actual | The string to be examined |
|
inlinestatic |
Asserts that a string is not found within another string.
expected | The expected string |
actual | The string to be examined |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
References NUnit.Framework.Constraints.ConstraintExpression.Contain(), NUnit.Framework.Does.Not, and NUnit.Framework.Assert.That().
Referenced by NUnit.Framework.Assertions.StringAssertTests.DoesNotContain(), and NUnit.Framework.Assertions.StringAssertTests.DoesNotContainFails().
|
inlinestatic |
Asserts that a string is found within another string.
expected | The expected string |
actual | The string to be examined |
|
inlinestatic |
Asserts that a string starts with another string.
expected | The expected string |
actual | The string to be examined |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
References NUnit.Framework.Does.StartWith(), and NUnit.Framework.Assert.That().
Referenced by NUnit.Framework.Assertions.StringAssertTests.StartsWith(), NUnit.Framework.Assertions.StringAssertTests.StartsWithFails(), and NUnit.Framework.Tests.AssertSyntaxTests.StartsWithTests().
|
inlinestatic |
Asserts that a string starts with another string.
expected | The expected string |
actual | The string to be examined |
|
inlinestatic |
Asserts that a string does not start with another string.
expected | The expected string |
actual | The string to be examined |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
References NUnit.Framework.Does.Not, NUnit.Framework.Constraints.ConstraintExpression.StartWith(), and NUnit.Framework.Assert.That().
Referenced by NUnit.Framework.Assertions.StringAssertTests.DoesNotStartWith(), and NUnit.Framework.Assertions.StringAssertTests.DoesNotStartWithFails().
|
inlinestatic |
Asserts that a string does not start with another string.
expected | The expected string |
actual | The string to be examined |
|
inlinestatic |
Asserts that a string ends with another string.
expected | The expected string |
actual | The string to be examined |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
References NUnit.Framework.Does.EndWith(), and NUnit.Framework.Assert.That().
Referenced by NUnit.Framework.Assertions.StringAssertTests.EndsWith(), NUnit.Framework.Assertions.StringAssertTests.EndsWithFails(), and NUnit.Framework.Tests.AssertSyntaxTests.EndsWithTests().
|
inlinestatic |
Asserts that a string ends with another string.
expected | The expected string |
actual | The string to be examined |
|
inlinestatic |
Asserts that a string does not end with another string.
expected | The expected string |
actual | The string to be examined |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
References NUnit.Framework.Constraints.ConstraintExpression.EndWith(), NUnit.Framework.Does.Not, and NUnit.Framework.Assert.That().
Referenced by NUnit.Framework.Assertions.StringAssertTests.DoesNotEndWith(), and NUnit.Framework.Assertions.StringAssertTests.DoesNotEndWithFails().
|
inlinestatic |
Asserts that a string does not end with another string.
expected | The expected string |
actual | The string to be examined |
|
inlinestatic |
Asserts that two strings are equal, without regard to case.
expected | The expected string |
actual | The actual string |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
Referenced by NUnit.Framework.Assertions.StringAssertTests.CaseInsensitiveCompare(), NUnit.Framework.Assertions.StringAssertTests.CaseInsensitiveCompareFails(), and NUnit.Framework.Tests.AssertSyntaxTests.EqualIgnoringCaseTests().
|
inlinestatic |
Asserts that two strings are equal, without regard to case.
expected | The expected string |
actual | The actual string |
|
inlinestatic |
Asserts that two strings are not equal, without regard to case.
expected | The expected string |
actual | The actual string |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
|
inlinestatic |
Asserts that two strings are not equal, without regard to case.
expected | The expected string |
actual | The actual string |
|
inlinestatic |
Asserts that a string matches an expected regular expression pattern.
pattern | The regex pattern to be matched |
actual | The actual string |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
Referenced by NUnit.Framework.Assertions.StringAssertTests.IsMatch(), NUnit.Framework.Assertions.StringAssertTests.IsMatchFails(), and NUnit.Framework.Tests.AssertSyntaxTests.RegularExpressionTests().
|
inlinestatic |
Asserts that a string matches an expected regular expression pattern.
pattern | The regex pattern to be matched |
actual | The actual string |
|
inlinestatic |
Asserts that a string does not match an expected regular expression pattern.
pattern | The regex pattern to be used |
actual | The actual string |
message | The message to display in case of failure |
args | Arguments used in formatting the message |
|
inlinestatic |
Asserts that a string does not match an expected regular expression pattern.
pattern | The regex pattern to be used |
actual | The actual string |