1 | <!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
---|
2 | <html>
|
---|
3 | <!-- Standard Head Part -->
|
---|
4 | <head>
|
---|
5 | <title>NUnit - StringAssert</title>
|
---|
6 | <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
---|
7 | <meta http-equiv="Content-Language" content="en-US">
|
---|
8 | <link rel="stylesheet" type="text/css" href="nunit.css">
|
---|
9 | <link rel="shortcut icon" href="favicon.ico">
|
---|
10 | </head>
|
---|
11 | <!-- End Standard Head Part -->
|
---|
12 |
|
---|
13 | <body>
|
---|
14 |
|
---|
15 | <!-- Standard Header for NUnit.org -->
|
---|
16 | <div id="header">
|
---|
17 | <a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
---|
18 | <div id="nav">
|
---|
19 | <a href="http://www.nunit.org">NUnit</a>
|
---|
20 | <a class="active" href="index.html">Documentation</a>
|
---|
21 | </div>
|
---|
22 | </div>
|
---|
23 | <!-- End of Header -->
|
---|
24 |
|
---|
25 | <div id="content">
|
---|
26 |
|
---|
27 | <h2>StringAssert (NUnit 2.2.3)</h2>
|
---|
28 | <p>The StringAssert class provides a number of methods that are useful
|
---|
29 | when examining string values.</p>
|
---|
30 |
|
---|
31 | <div class="code" style="width: 36em">
|
---|
32 | <pre>StringAssert.Contains( string expected, string actual );
|
---|
33 | StringAssert.Contains( string expected, string actual,
|
---|
34 | string message );
|
---|
35 | StringAssert.Contains( string expected, string actual,
|
---|
36 | string message, params object[] args );
|
---|
37 |
|
---|
38 | StringAssert.StartsWith( string expected, string actual );
|
---|
39 | StringAssert.StartsWith( string expected, string actual,
|
---|
40 | string message );
|
---|
41 | StringAssert.StartsWith( string expected, string actual,
|
---|
42 | string message, params object[] args );
|
---|
43 |
|
---|
44 | StringAssert.EndsWith( string expected, string actual );
|
---|
45 | StringAssert.EndsWith( string expected, string actual,
|
---|
46 | string message );
|
---|
47 | StringAssert.EndsWith( string expected, string actual,
|
---|
48 | string message, params object[] args );
|
---|
49 |
|
---|
50 | StringAssert.AreEqualIgnoringCase( string expected, string actual );
|
---|
51 | StringAssert.AreEqualIgnoringCase( string expected, string actual,
|
---|
52 | string message );
|
---|
53 | StringAssert.AreEqualIgnoringCase( string expected, string actual,
|
---|
54 | string message params object[] args );
|
---|
55 |
|
---|
56 | StringAssert.IsMatch( string regexPattern, string actual );
|
---|
57 | StringAssert.IsMatch( string regexPattern, string actual,
|
---|
58 | string message );
|
---|
59 | StringAssert.IsMatch( string regexPattern, string actual,
|
---|
60 | string message, params object[] args );</pre>
|
---|
61 | </div>
|
---|
62 |
|
---|
63 | </div>
|
---|
64 |
|
---|
65 | <!-- Submenu -->
|
---|
66 | <div id="subnav">
|
---|
67 | <ul>
|
---|
68 | <li><a href="index.html">NUnit 2.5.10</a></li>
|
---|
69 | <ul>
|
---|
70 | <li><a href="getStarted.html">Getting Started</a></li>
|
---|
71 | <li><a href="assertions.html">Assertions</a></li>
|
---|
72 | <ul>
|
---|
73 | <li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
---|
74 | <li><a href="identityAsserts.html">Identity Asserts</a></li>
|
---|
75 | <li><a href="conditionAsserts.html">Condition Asserts</a></li>
|
---|
76 | <li><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
---|
77 | <li><a href="typeAsserts.html">Type Asserts</a></li>
|
---|
78 | <li><a href="exceptionAsserts.html">Exception Asserts</a></li>
|
---|
79 | <li><a href="utilityAsserts.html">Utility Methods</a></li>
|
---|
80 | <li id="current"><a href="stringAssert.html">String Assert</a></li>
|
---|
81 | <li><a href="collectionAssert.html">Collection Assert</a></li>
|
---|
82 | <li><a href="fileAssert.html">File Assert</a></li>
|
---|
83 | <li><a href="directoryAssert.html">Directory Assert</a></li>
|
---|
84 | </ul>
|
---|
85 | <li><a href="constraintModel.html">Constraints</a></li>
|
---|
86 | <li><a href="attributes.html">Attributes</a></li>
|
---|
87 | <li><a href="runningTests.html">Running Tests</a></li>
|
---|
88 | <li><a href="extensibility.html">Extensibility</a></li>
|
---|
89 | <li><a href="releaseNotes.html">Release Notes</a></li>
|
---|
90 | <li><a href="samples.html">Samples</a></li>
|
---|
91 | <li><a href="license.html">License</a></li>
|
---|
92 | </ul>
|
---|
93 | </ul>
|
---|
94 | </div>
|
---|
95 | <!-- End of Submenu -->
|
---|
96 |
|
---|
97 |
|
---|
98 | <!-- Standard Footer for NUnit.org -->
|
---|
99 | <div id="footer">
|
---|
100 | Copyright © 2010 Charlie Poole. All Rights Reserved.
|
---|
101 | </div>
|
---|
102 | <!-- End of Footer -->
|
---|
103 |
|
---|
104 | </body>
|
---|
105 | </html>
|
---|