diff options
Diffstat (limited to 'tools/NUnit/doc/delayedConstraint.html')
-rw-r--r-- | tools/NUnit/doc/delayedConstraint.html | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/tools/NUnit/doc/delayedConstraint.html b/tools/NUnit/doc/delayedConstraint.html new file mode 100644 index 0000000..64320e9 --- /dev/null +++ b/tools/NUnit/doc/delayedConstraint.html @@ -0,0 +1,93 @@ +<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> +<html> +<!-- Standard Head Part --> +<head> +<title>NUnit - DelayedConstraint</title> +<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> +<meta http-equiv="Content-Language" content="en-US"> +<link rel="stylesheet" type="text/css" href="nunit.css"> +<link rel="shortcut icon" href="favicon.ico"> +</head> +<!-- End Standard Head Part --> + +<body> + +<!-- Standard Header for NUnit.org --> +<div id="header"> + <a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a> + <div id="nav"> + <a href="http://www.nunit.org">NUnit</a> + <a class="active" href="index.html">Documentation</a> + </div> +</div> +<!-- End of Header --> + +<div id="content"> + +<h2>Delayed Constraint (NUnit 2.5)</h2> + +<p><b>DelayedConstraint</b> delays the application of another constraint until a certain + amount of time has passed. In it's simplest form, it replaces use of a Sleep + in the code but it also supports polling, which may allow use of a longer + maximum time while still keeping the tests as fast as possible. + +<p>The <b>After</b> modifier is permitted on any constraint, and the delay applies to + the entire expression up to the point where <b>After</b> appears. + +<p>Use of a <b>DelayedConstraint</b> with a value argument makes no sense, since + the value will be extracted at the point of call. It's intended use is with + delegates and references. If a delegate is used with polling, it may be called + multiple times so only methods without side effects should be used in this way. + +<table class="constraints"> +<tr><th>Syntax Helper</th><th>Constructor</th><th>Operation</th></tr> +<tr><td>After(int)</td><td>DelayedConstraint(Constraint, int)</td></td><td>tests that a constraint is satisfied after a delay.</tr> +<tr><td>After(int, int)</td><td>DelayedConstraint(Constraint, int, int)</td></td><td>tests that a constraint is satisfied after a delay using polling.</tr> +</table> + + +</div> + +<!-- Submenu --> +<div id="subnav"> +<ul> +<li><a href="index.html">NUnit 2.5.5</a></li> +<ul> +<li><a href="getStarted.html">Getting Started</a></li> +<li><a href="assertions.html">Assertions</a></li> +<li><a href="constraintModel.html">Constraints</a></li> +<ul> +<li><a href="equalConstraint.html">Equal Constraint</a></li> +<li><a href="sameasConstraint.html">SameAs Constraint</a></li> +<li><a href="conditionConstraints.html">Condition Constraints</a></li> +<li><a href="comparisonConstraints.html">Comparison Constrants</a></li> +<li><a href="pathConstraints.html">Path Constraints</a></li> +<li><a href="typeConstraints.html">Type Constraints</a></li> +<li><a href="stringConstraints.html">String Constraints</a></li> +<li><a href="collectionConstraints.html">Collection Constraints</a></li> +<li><a href="propertyConstraint.html">Property Constraint</a></li> +<li><a href="throwsConstraint.html">Throws Constraint</a></li> +<li><a href="compoundConstraints.html">Compound Constraints</a></li> +<li id="current"><a href="delayedConstraint.html">Delayed Constraint</a></li> +<li><a href="listMapper.html">List Mapper</a></li> +</ul> +<li><a href="attributes.html">Attributes</a></li> +<li><a href="runningTests.html">Running Tests</a></li> +<li><a href="extensibility.html">Extensibility</a></li> +<li><a href="releaseNotes.html">Release Notes</a></li> +<li><a href="samples.html">Samples</a></li> +<li><a href="license.html">License</a></li> +</ul> +</ul> +</div> +<!-- End of Submenu --> + + +<!-- Standard Footer for NUnit.org --> +<div id="footer"> + Copyright © 2009 Charlie Poole. All Rights Reserved. +</div> +<!-- End of Footer --> + +</body> +</html> |