public void FieldTemplate_2() { FieldTemplatePathTables.SetUp_FullTypeNameTemplates(this); var test = new WebTest("ListView_DynamicControl_03.aspx"); test.Invoker = PageInvoker.CreateOnLoad(FieldTemplate_OnLoad_2); var p = test.Run(); Assert.IsNotNull(test.Response, "#X1"); Assert.AreNotEqual(HttpStatusCode.NotFound, test.Response.StatusCode, "#X1-1{0}Returned HTML:{0}{1}", Environment.NewLine, p); Assert.AreNotEqual(HttpStatusCode.InternalServerError, test.Response.StatusCode, "#X1-2{0}Returned HTML:{0}{1}", Environment.NewLine, p); Assert.IsFalse(String.IsNullOrEmpty(p), "#X1-3"); }
public void PerTestSetUp() { // This is ran before every test FieldTemplatePathTables.CleanUp_FullTypeNameTemplates(); FieldTemplatePathTables.CleanUp_ShortTypeNameTemplates(); }
public void TearDown() { FieldTemplatePathTables.CleanUp_FullTypeNameTemplates(); FieldTemplatePathTables.CleanUp_ShortTypeNameTemplates(); WebTest.Unload(); }