-
Notifications
You must be signed in to change notification settings - Fork 159
String Assert
Chris Maddock edited this page Sep 5, 2016
·
5 revisions
The StringAssert class provides a number of methods that are useful when examining string values.
StringAssert.Contains( string expected, string actual );
StringAssert.Contains( string expected, string actual,
string message, params object[] args );
StringAssert.DoesNotContain( string expected, string actual );
StringAssert.DoesNotContain( string expected, string actual,
string message, params object[] args );
StringAssert.StartsWith( string expected, string actual );
StringAssert.StartsWith( string expected, string actual,
string message, params object[] args
StringAssert.DoesNotStartsWith( string expected, string actual );
StringAssert.DoesNotStartsWith( string expected, string actual,
string message, params object[] args );
StringAssert.EndsWith( string expected, string actual );
StringAssert.EndsWith( string expected, string actual,
string message, params object[] args );
StringAssert.DoesNotEndWith( string expected, string actual );
StringAssert.DoesNotEndWith( string expected, string actual,
string message, params object[] args );
StringAssert.AreEqualIgnoringCase( string expected, string actual );
StringAssert.AreEqualIgnoringCase( string expected, string actual,
string message params object[] args );
StringAssert.AreNotEqualIgnoringCase( string expected, string actual );
StringAssert.AreNotEqualIgnoringCase( string expected, string actual,
string message params object[] args );
StringAssert.IsMatch( string regexPattern, string actual );
StringAssert.IsMatch( string regexPattern, string actual,
string message, params object[] args );
StringAssert.DoesNotMatch( string regexPattern, string actual );
StringAssert.DoesNotMatch( string regexPattern, string actual,
string message, params object[] args );
####See also...
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers