Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 public void PerTestSetUp()
 {
     // This is ran before every test
     FieldTemplatePathTables.CleanUp_FullTypeNameTemplates();
     FieldTemplatePathTables.CleanUp_ShortTypeNameTemplates();
 }
Ejemplo n.º 3
0
 public void TearDown()
 {
     FieldTemplatePathTables.CleanUp_FullTypeNameTemplates();
     FieldTemplatePathTables.CleanUp_ShortTypeNameTemplates();
     WebTest.Unload();
 }