Custom Data Annotation Validator Part III: QUnit Tests
Posted by: K. Scott Allen,
on 24 Feb 2011 |
View original | Bookmarked: 0 time(s)
QUnit is an easy to use testing framework* for an easy to test language. Once you've downloaded the library you can load up an .html page with all of your scripts, and the boilerplate qUnit HTML: <h1 id="qunit-header">Validator Tests</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
<input id="prefix_first"...