[NUnitAsp-devl] RepeaterTester usage
Brought to you by:
jlittle82
From: Matthew R. <ma...@ra...> - 2006-01-09 21:03:44
|
I'm not sure whether this should be posted here, I tried posting to the nunit-users list first but had no response hence posting here. Also, the question is about the current build, not the last stable release, hence = may be more appropriate here. Below is the message as sent to the users = list. I first have to say thanks to all those who worked to bring this nunit extension about - it has made my web development far more reliable. I started by downloading v1.5.1 however, I had the need to test a repeater control so I have just downloaded the latest source and compiled that instead.=20 I have one question at the moment, I am trying to use the RepeaterTester = to test a server control that I am creating. At the moment, the control = simply renders an unsorted list, with <ul> in the header, <li> items in the = item and </ul> in the footer template.=20 My server control renders the following html <ul id=3D"StockCategoryList"> <li>Category1</li> <li>Category2</li> <li>Category3</li> <li>Category4</li> </ul> My test code is as follows, RepeaterTester mainList =3D new RepeaterTester("StockCategoryList"); int count =3D mainList.ItemCount; In this situation, count is set to 0, even though I would expect it to = read 4. I'm sure it is something I'm doing wrong, can anyone advise what I = should be doing instead? Many thanks Matt |