~ubuntu-branches/debian/sid/nunit/sid

« back to all changes in this revision

Viewing changes to doc/identityAsserts.html

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2014-09-16 13:43:36 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140916134336-kjxz48tty6lx2ja5
Tags: 2.6.3+dfsg-1
* [c7bd1b5] Imported Upstream version 2.6.3+dfsg
* [bcb4bf8] Move nunit-console-runner to GAC-installed libnunit2.6, 
  don't treat it as a private lib. This lib is signed, and treated 
  as a GAC lib by consumers such as MonoDevelop.
* [7f08e99] Bump version to 2.6.3 as required
* [84535eb] Refreshed patches
* [8479f61] Split package up into per-assembly packages. This makes 
  ABI tracking easier in the future, as we can meaningfully have GAC 
  policy for cases where ABI isn't truly bumped, and no policy for 
  cases where it is. For example, if nunit.framework bumps ABI but 
  nunit.core does not, previously we would need to rebuild everything 
  using NUnit, but under the new split packaging, that rebuild would 
  not be needed for apps only using nunit.core.
* [17a7dc7] Add missing nunit.mocks.dll to nunit.pc

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 - IdentityAsserts</title>
6
 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
7
 
<meta http-equiv="Content-Language" content="en-US">
8
 
<meta name="norton-safeweb-site-verification" content="tb6xj01p4hgo5x-8wscsmq633y11-e6nhk-bnb5d987bseanyp6p0uew-pec8j963qlzj32k5x9h3r2q7wh-vmy8bbhek5lnpp5w4p8hocouuq39e09jrkihdtaeknua" />
9
 
<link rel="stylesheet" type="text/css" href="nunit.css">
10
 
<link rel="shortcut icon" href="favicon.ico">
11
 
</head>
12
 
<!-- End Standard Head Part -->
13
 
 
14
 
<body>
15
 
 
16
 
<!-- Standard Header for NUnit.org -->
17
 
<div id="header">
18
 
  <a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
 
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 - IdentityAsserts</title>
 
6
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
 
7
<meta http-equiv="Content-Language" content="en-US">
 
8
<meta name="norton-safeweb-site-verification" content="tb6xj01p4hgo5x-8wscsmq633y11-e6nhk-bnb5d987bseanyp6p0uew-pec8j963qlzj32k5x9h3r2q7wh-vmy8bbhek5lnpp5w4p8hocouuq39e09jrkihdtaeknua" />
 
9
<link rel="stylesheet" type="text/css" href="nunit.css">
 
10
<link rel="shortcut icon" href="favicon.ico">
 
11
</head>
 
12
<!-- End Standard Head Part -->
 
13
 
 
14
<body>
 
15
 
 
16
<!-- Standard Header for NUnit.org -->
 
17
<div id="header">
 
18
  <a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
19
19
  <div id="nav">
20
20
    <a href="http://www.nunit.org">NUnit</a>
21
21
    <a class="active" href="index.html">Documentation</a>
22
 
  </div>
23
 
</div>
24
 
<!-- End of Header -->
25
 
 
26
 
<div id="content">
27
 
 
28
 
<h2>Identity Asserts</h2>
29
 
 
30
 
<p><b>Assert.AreSame</b> and <b>Assert.AreNotSame</b> test whether the same objects are 
31
 
referenced by the two arguments.</p> 
32
 
 
33
 
<div class="code" style="width: 36em" >
34
 
<pre>Assert.AreSame( object expected, object actual );
35
 
Assert.AreSame( object expected, object actual, string message );
36
 
Assert.AreSame( object expected, object actual, string message, 
37
 
                params object[] parms );
38
 
 
39
 
Assert.AreNotSame( object expected, object actual );
40
 
Assert.AreNotSame( object expected, object actual, string message );
41
 
Assert.AreNotSame( object expected, object actual, string message, 
42
 
                params object[] parms );</pre>
43
 
</div>
44
 
 
45
 
<p><b>Assert.Contains</b> is used to test whether an object is contained in an array 
46
 
or list.</p>
47
 
 
48
 
<div class="code" width="36em">
49
 
<pre>Assert.Contains( object anObject, IList collection );
50
 
Assert.Contains( object anObject, IList collection, 
51
 
                string message );
52
 
Assert.Contains( object anObject, IList collection,
53
 
                string message, params object[] parms );</pre>
54
 
</div>
55
 
 
56
 
</div>
57
 
 
58
 
<!-- Submenu -->
59
 
<div id="subnav">
60
 
<ul>
61
 
<li><a href="index.html">NUnit 2.6</a></li>
62
 
<ul>
63
 
<li><a href="getStarted.html">Getting&nbsp;Started</a></li>
64
 
<li><a href="writingTests.html">Writing&nbsp;Tests</a></li>
65
 
<ul>
66
 
<li><a href="assertions.html">Assertions</a></li>
67
 
<ul>
68
 
<li><a href="equalityAsserts.html">Equality&nbsp;Asserts</a></li>
69
 
<li id="current"><a href="identityAsserts.html">Identity&nbsp;Asserts</a></li>
70
 
<li><a href="conditionAsserts.html">Condition&nbsp;Asserts</a></li>
71
 
<li><a href="comparisonAsserts.html">Comparison&nbsp;Asserts</a></li>
72
 
<li><a href="typeAsserts.html">Type&nbsp;Asserts</a></li>
73
 
<li><a href="exceptionAsserts.html">Exception&nbsp;Asserts</a></li>
74
 
<li><a href="utilityAsserts.html">Utility&nbsp;Methods</a></li>
75
 
<li><a href="stringAssert.html">String&nbsp;Assert</a></li>
76
 
<li><a href="collectionAssert.html">Collection&nbsp;Assert</a></li>
77
 
<li><a href="fileAssert.html">File&nbsp;Assert</a></li>
78
 
<li><a href="directoryAssert.html">Directory&nbsp;Assert</a></li>
79
 
</ul>
80
 
<li><a href="attributes.html">Attributes</a></li>
81
 
<li><a href="constraintModel.html">Constraints</a></li>
82
 
<li><a href="testContext.html">Test&nbsp;Context</a></li>
83
 
</ul>
84
 
<li><a href="runningTests.html">Running&nbsp;Tests</a></li>
85
 
<li><a href="extensibility.html">Extensibility</a></li>
86
 
<li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
87
 
<li><a href="samples.html">Samples</a></li>
88
 
<li><a href="license.html">License</a></li>
89
 
</ul>
90
 
<li><a href="vsTestAdapter.html">NUnit&nbsp;Test&nbsp;Adapter&nbsp;0.90</a></li>
91
 
<ul>
92
 
<li><a href="vsTestAdapterLicense.html">License</a></li>
93
 
</ul>
94
 
<li><a href="&r=2.6.html"></a></li>
95
 
<li><a href="&r=2.6.html"></a></li>
96
 
</ul>
97
 
</div>
98
 
<!-- End of Submenu -->
99
 
 
100
 
 
101
 
<!-- Standard Footer for NUnit.org -->
102
 
<div id="footer">
103
 
  Copyright &copy; 2012 Charlie Poole. All Rights Reserved.
104
 
</div>
105
 
<!-- End of Footer -->
106
 
 
107
 
</body>
108
 
</html>
 
22
  </div>
 
23
</div>
 
24
<!-- End of Header -->
 
25
 
 
26
<div id="content">
 
27
 
 
28
<h2>Identity Asserts</h2>
 
29
 
 
30
<p><b>Assert.AreSame</b> and <b>Assert.AreNotSame</b> test whether the same objects are 
 
31
referenced by the two arguments.</p> 
 
32
 
 
33
<div class="code" style="width: 36em" >
 
34
<pre>Assert.AreSame( object expected, object actual );
 
35
Assert.AreSame( object expected, object actual, string message );
 
36
Assert.AreSame( object expected, object actual, string message, 
 
37
                params object[] parms );
 
38
 
 
39
Assert.AreNotSame( object expected, object actual );
 
40
Assert.AreNotSame( object expected, object actual, string message );
 
41
Assert.AreNotSame( object expected, object actual, string message, 
 
42
                params object[] parms );</pre>
 
43
</div>
 
44
 
 
45
<p><b>Assert.Contains</b> is used to test whether an object is contained in an array 
 
46
or list.</p>
 
47
 
 
48
<div class="code" width="36em">
 
49
<pre>Assert.Contains( object anObject, IList collection );
 
50
Assert.Contains( object anObject, IList collection, 
 
51
                string message );
 
52
Assert.Contains( object anObject, IList collection,
 
53
                string message, params object[] parms );</pre>
 
54
</div>
 
55
 
 
56
</div>
 
57
 
 
58
<!-- Submenu -->
 
59
<div id="subnav">
 
60
<ul>
 
61
<li><a href="index.html">NUnit 2.6.3</a></li>
 
62
<ul>
 
63
<li><a href="getStarted.html">Getting&nbsp;Started</a></li>
 
64
<li><a href="writingTests.html">Writing&nbsp;Tests</a></li>
 
65
<ul>
 
66
<li><a href="assertions.html">Assertions</a></li>
 
67
<ul>
 
68
<li><a href="classicModel.html">Classic&nbsp;Model</a></li>
 
69
<ul>
 
70
<li><a href="equalityAsserts.html">Equality&nbsp;Asserts</a></li>
 
71
<li id="current"><a href="identityAsserts.html">Identity&nbsp;Asserts</a></li>
 
72
<li><a href="conditionAsserts.html">Condition&nbsp;Asserts</a></li>
 
73
<li><a href="comparisonAsserts.html">Comparison&nbsp;Asserts</a></li>
 
74
<li><a href="typeAsserts.html">Type&nbsp;Asserts</a></li>
 
75
<li><a href="exceptionAsserts.html">Exception&nbsp;Asserts</a></li>
 
76
<li><a href="utilityAsserts.html">Utility&nbsp;Methods</a></li>
 
77
<li><a href="stringAssert.html">String&nbsp;Assert</a></li>
 
78
<li><a href="collectionAssert.html">Collection&nbsp;Assert</a></li>
 
79
<li><a href="fileAssert.html">File&nbsp;Assert</a></li>
 
80
<li><a href="directoryAssert.html">Directory&nbsp;Assert</a></li>
 
81
</ul>
 
82
<li><a href="constraintModel.html">Constraint&nbsp;Model</a></li>
 
83
</ul>
 
84
<li><a href="attributes.html">Attributes</a></li>
 
85
<li><a href="testContext.html">Test&nbsp;Context</a></li>
 
86
</ul>
 
87
<li><a href="runningTests.html">Running&nbsp;Tests</a></li>
 
88
<li><a href="extensibility.html">Extensibility</a></li>
 
89
<li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
 
90
<li><a href="samples.html">Samples</a></li>
 
91
<li><a href="license.html">License</a></li>
 
92
</ul>
 
93
<li><a href="vsTestAdapter.html">NUnit&nbsp;Test&nbsp;Adapter</a></li>
 
94
<ul>
 
95
<li><a href="vsTestAdapterLicense.html">License</a></li>
 
96
<li><a href="vsTestAdapterReleaseNotes.html">Release&nbsp;Notes</a></li>
 
97
</ul>
 
98
<li><a href="&r=2.6.3.html"></a></li>
 
99
<li><a href="&r=2.6.3.html"></a></li>
 
100
</ul>
 
101
</div>
 
102
<!-- End of Submenu -->
 
103
 
 
104
 
 
105
<!-- Standard Footer for NUnit.org -->
 
106
<div id="footer">
 
107
  Copyright &copy; 2012 Charlie Poole. All Rights Reserved.
 
108
</div>
 
109
<!-- End of Footer -->
 
110
 
 
111
</body>
 
112
</html>