[Nunitasp-announce] NUnitAsp v1.3 released
Brought to you by:
jlittle82
From: Jim L. <jl...@wg...> - 2003-03-24 06:53:18
|
NUnitAsp v1.3 is now available for download. The focus of this release was better support for poorly-formed HTML. With this release, NUnitAsp no longer requires you to modify the HTML generated by Visual Studio .NET. Many thanks to Rick Currence and Andrew Enfield for their important contributions to this release. NUnitAsp v1.3 is available for download at: http://prdownloads.sourceforge.net/nunitasp/NUnitAsp-1.3.zip?download. The NUnitAsp website is at http://nunitasp.sourceforge.net. About NUnitAsp: NUnitAsp is an open-source extension to the popular NUnit testing framework. It allows you to test ASP.NET pages without worrying about how the pages are rendered as HTML. Instead, you interact with "Tester" objects that look just like the ASP.NET objects you're testing. Using NUnitAsp, you can assert on the text of a label by calling "label.Text". You can click a link by calling "link.Click()". Here's an example: public void TestExample() { LabelTester label = new LabelTester("textLabel", CurrentWebForm); LinkButtonTester link = new LinkButtonTester("linkButton", CurrentWebForm); AssertEquals("first page", "FirstExample", CurrentWebForm.AspId); AssertEquals("label", "Example Label", label.Text); link.Click(); AssertEquals("second page", "SecondExample", CurrentWebForm.AspId); } NUnitAsp currently has support for the most popular ASP.NET controls. Support for additional controls is easy to add. Here's a list of the controls supported in this release: * Anchor * Button * CheckBox * DataGrid * DropDownList * Label * LinkButton * Panel * RadioButton * TextBox * UserControl * ValidationSummary Jim Little Project Coordinator NUnitAsp |