[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 - Upgrade</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>From NUnit 2.x</h2>
|
---|
| 28 |
|
---|
| 29 | <p>Beginning with version 2.2.1, old style test cases ("Test....") are no longer
|
---|
| 30 | recognized by default. We recommend that you convert such test cases to use the
|
---|
| 31 | <a href="test.html">TestAttribute</a>. Alternatively, you may
|
---|
| 32 | specify a setting in the test config file to allow use of old style test cases by
|
---|
| 33 | default.</p>
|
---|
| 34 |
|
---|
| 35 | <p>Beginning with NUnit 2.2.2, NUnit is able to run tests Built with older
|
---|
| 36 | versions of NUnit 2.x without recompilation. Note that you must have an
|
---|
| 37 | available copy of the nunit.framework assembly from the older version
|
---|
| 38 | in order for your tests to load correctly.
|
---|
| 39 |
|
---|
| 40 | <h2>From NUnit 1.x</h2>
|
---|
| 41 |
|
---|
| 42 | <p>NUnit 2.5 no longer supports inheriting from TestCase when defining a test.
|
---|
| 43 | If you need to run such tests, you may continue to do so using the
|
---|
| 44 | a 2.4.x or earlier version of the nunit.framework assembly. Of course, you
|
---|
| 45 | will not be able to use new features introduced in 2.5 if you follow this
|
---|
| 46 | course.
|
---|
| 47 |
|
---|
| 48 | <p>For a complete conversion to 2.5, you should modify and recompile your tests
|
---|
| 49 | using the new version of NUnit.
|
---|
| 50 |
|
---|
| 51 | <h3>Suite property</h3>
|
---|
| 52 | <p>The NUnit 1.x Suite property will not be found by the new program. These must be
|
---|
| 53 | changed to the "Suite" attribute for the test runners to find them.
|
---|
| 54 | Another alternative is that these suites are no longer needed due to the
|
---|
| 55 | automatic capability that is built in to the new version.</p>
|
---|
| 56 |
|
---|
| 57 | <h3>AssertionFailedError</h3>
|
---|
| 58 | <p>If you have written code expecting the exception AssertionFailedError, this must
|
---|
| 59 | be changed to AssertionException.</p>
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | </div>
|
---|
| 63 |
|
---|
| 64 | <!-- Submenu -->
|
---|
| 65 | <div id="subnav">
|
---|
| 66 | <ul>
|
---|
| 67 | <li><a href="index.html">NUnit 2.5.10</a></li>
|
---|
| 68 | <ul>
|
---|
| 69 | <li><a href="getStarted.html">Getting Started</a></li>
|
---|
| 70 | <ul>
|
---|
| 71 | <li><a href="quickStart.html">Quick Start</a></li>
|
---|
| 72 | <li><a href="installation.html">Installation</a></li>
|
---|
| 73 | <ul>
|
---|
| 74 | <li id="current"><a href="upgrade.html">Upgrading</a></li>
|
---|
| 75 | </ul>
|
---|
| 76 | </ul>
|
---|
| 77 | <li><a href="assertions.html">Assertions</a></li>
|
---|
| 78 | <li><a href="constraintModel.html">Constraints</a></li>
|
---|
| 79 | <li><a href="attributes.html">Attributes</a></li>
|
---|
| 80 | <li><a href="runningTests.html">Running Tests</a></li>
|
---|
| 81 | <li><a href="extensibility.html">Extensibility</a></li>
|
---|
| 82 | <li><a href="releaseNotes.html">Release Notes</a></li>
|
---|
| 83 | <li><a href="samples.html">Samples</a></li>
|
---|
| 84 | <li><a href="license.html">License</a></li>
|
---|
| 85 | </ul>
|
---|
| 86 | </ul>
|
---|
| 87 | </div>
|
---|
| 88 | <!-- End of Submenu -->
|
---|
| 89 |
|
---|
| 90 |
|
---|
| 91 | <!-- Standard Footer for NUnit.org -->
|
---|
| 92 | <div id="footer">
|
---|
| 93 | Copyright © 2010 Charlie Poole. All Rights Reserved.
|
---|
| 94 | </div>
|
---|
| 95 | <!-- End of Footer -->
|
---|
| 96 |
|
---|
| 97 | </body>
|
---|
| 98 | </html>
|
---|