예제 #1
0
        public void PreApplicationStartCode_IsValid()
        {
#pragma warning disable 0618 // System.Web.Http.WebHost.PreApplicationStartCode is obsolete
            Type preApplicationStartType = typeof(PreApplicationStartCode);
#pragma warning restore
            PreAppStartTestHelper.TestPreAppStartClass(preApplicationStartType);
            object[] attrs = preApplicationStartType.GetCustomAttributes(typeof(ObsoleteAttribute), true);
            Assert.Single(attrs);
        }
예제 #2
0
 public void TestPreAppStartClass()
 {
     PreAppStartTestHelper.TestPreAppStartClass(typeof(PreApplicationStartCode));
 }
 public void PreApplicationStartCodeIsNotBrowsableTest()
 {
     PreAppStartTestHelper.TestPreAppStartClass(typeof(PreApplicationStartCode));
 }
예제 #4
0
 public void TestPreAppStartClass()
 {
     PreAppStartTestHelper.TestPreAppStartClass(typeof(Microsoft.Web.Helpers.PreApplicationStartCode));
 }