[NUnitAsp-devl] NUnitASP with ASP.NET 2.0 and gettting #document
Brought to you by:
jlittle82
From: Chris S. <ch...@sz...> - 2005-06-08 18:31:17
|
Two things: 1) ASP.NET 2.0 makes a change to the naming convention that breaks DataGrid testers. A quick hack to DataGridTester.cs fixes this, but it breaks 1.1 testing, so I'm not sure how this would be integrated. Replace GetChildElementsById with protected internal override string GetChildElementHtmlId(string aspId) { try { int rowNumber = int.Parse(aspId); return String.Format("{0}_ctl{1:D2}", HtmlId, (rowNumber + 1)); } catch (FormatException) { throw new ContainerMustBeRowException(aspId, this); } } Hopefully, this could be incorporated in, but I'm not sure what the best way to make it conditional would be. (An attribute, a constructor attribute, etc.) 2) What's the easiest way to get at the internal #document? I'm trying to clean up some warnings in the code, and I've got one I can't figure out, and the BrowserPage doesn't seem to match up with the internal document. ### Error:Expected empty start tag '/>' sequence instead of 'n' Referenced on line 166, position 842 of internal entity '#document' I'd like to be able to dump out the #document to view the exact location and determine errors like this. Many thanks, Chris Szurgot |