public void StylesRenderTest () { string html = new WebTest (PageInvoker.CreateOnLoad ( new PageDelegate (StylesRenderTestInit))).Run (); Assert.IsTrue (html.IndexOf ("LightGoldenrodYellow;") > 0, "TextBoxStyle"); Assert.IsTrue (html.LastIndexOf ("LightGoldenrodYellow;") > html.IndexOf ("LightGoldenrodYellow;"), "TextBoxStyle2"); Assert.IsTrue (html.IndexOf ("732px") > 0, "TitleTextStyle"); Assert.IsTrue (html.IndexOf ("LightSkyBlue;") > 0, "HyperLinkStyle"); Assert.IsTrue (html.IndexOf ("MediumSeaGreen;") > 0, "InstructionTextStyle"); Assert.IsTrue (html.IndexOf ("MediumSpringGreen;") > 0, "LabelStyle"); Assert.IsTrue (html.IndexOf ("MintCream;") > 0, "PasswordHintStyle"); Assert.IsTrue (html.IndexOf ("PeachPuff;") > 0, "CreateUserButtonStyle"); }