[1146] | 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 - SuiteBuilders</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 | <h3>SuiteBuilders (NUnit 2.4)</h3>
|
---|
| 28 |
|
---|
| 29 | <h4>Purpose</h4>
|
---|
| 30 | <p>A SuiteBuilder is an addin used to build a test fixture from a type. NUnit itself
|
---|
| 31 | uses a SuiteBuilder to recognize and build TestFixtures.
|
---|
| 32 |
|
---|
| 33 | <h4>Extension Point</h4>
|
---|
| 34 | <p>An addin may use the host to access this extension point by name:
|
---|
| 35 |
|
---|
| 36 | <pre>
|
---|
| 37 | IExtensionPoint suiteBuilders = host.GetExtensionPoint( "SuiteBuilders" );</pre>
|
---|
| 38 |
|
---|
| 39 | <h4>Interface</h4>
|
---|
| 40 | <p>The extension object passed to Install must implement the ISuiteBuilder interface:
|
---|
| 41 |
|
---|
| 42 | <pre>
|
---|
| 43 | public interface ISuiteBuilder
|
---|
| 44 | {
|
---|
| 45 | bool CanBuildFrom( Type type );
|
---|
| 46 | Test BuildFrom( Type type );
|
---|
| 47 | }
|
---|
| 48 | </pre>
|
---|
| 49 |
|
---|
| 50 | <p>CanBuildFrom should return true if the specified Type is one from which
|
---|
| 51 | the builder is able to create a fixture. This usually involve examining
|
---|
| 52 | the Type and its attriutes.
|
---|
| 53 |
|
---|
| 54 | <p>The BuildFrom method should return a test fixture completely populated
|
---|
| 55 | with its contained test cases. Return null if it is not possible to
|
---|
| 56 | build a fixture using the provided Type.
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 | </div>
|
---|
| 60 |
|
---|
| 61 | <!-- Submenu -->
|
---|
| 62 | <div id="subnav">
|
---|
| 63 | <ul>
|
---|
| 64 | <li><a href="index.html">NUnit 2.5.10</a></li>
|
---|
| 65 | <ul>
|
---|
| 66 | <li><a href="getStarted.html">Getting Started</a></li>
|
---|
| 67 | <li><a href="assertions.html">Assertions</a></li>
|
---|
| 68 | <li><a href="constraintModel.html">Constraints</a></li>
|
---|
| 69 | <li><a href="attributes.html">Attributes</a></li>
|
---|
| 70 | <li><a href="runningTests.html">Running Tests</a></li>
|
---|
| 71 | <li><a href="extensibility.html">Extensibility</a></li>
|
---|
| 72 | <ul>
|
---|
| 73 | <li><a href="customConstraints.html">Custom Constraints</a></li>
|
---|
| 74 | <li><a href="nunitAddins.html">NUnit Addins</a></li>
|
---|
| 75 | <ul>
|
---|
| 76 | <li id="current"><a href="suiteBuilders.html">SuiteBuilders</a></li>
|
---|
| 77 | <li><a href="testcaseBuilders.html">TestcaseBuilders</a></li>
|
---|
| 78 | <li><a href="testDecorators.html">TestDecorators</a></li>
|
---|
| 79 | <li><a href="testcaseProviders.html">TestcaseProviders</a></li>
|
---|
| 80 | <li><a href="datapointProviders.html">DatapointProviders</a></li>
|
---|
| 81 | <li><a href="eventListeners.html">EventListeners</a></li>
|
---|
| 82 | </ul>
|
---|
| 83 | <li><a href="extensionTips.html">Tips for Extenders</a></li>
|
---|
| 84 | </ul>
|
---|
| 85 | <li><a href="releaseNotes.html">Release Notes</a></li>
|
---|
| 86 | <li><a href="samples.html">Samples</a></li>
|
---|
| 87 | <li><a href="license.html">License</a></li>
|
---|
| 88 | </ul>
|
---|
| 89 | </ul>
|
---|
| 90 | </div>
|
---|
| 91 | <!-- End of Submenu -->
|
---|
| 92 |
|
---|
| 93 |
|
---|
| 94 | <!-- Standard Footer for NUnit.org -->
|
---|
| 95 | <div id="footer">
|
---|
| 96 | Copyright © 2010 Charlie Poole. All Rights Reserved.
|
---|
| 97 | </div>
|
---|
| 98 | <!-- End of Footer -->
|
---|
| 99 |
|
---|
| 100 | </body>
|
---|
| 101 | </html>
|
---|