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); }
public void TestPreAppStartClass() { PreAppStartTestHelper.TestPreAppStartClass(typeof(PreApplicationStartCode)); }
public void PreApplicationStartCodeIsNotBrowsableTest() { PreAppStartTestHelper.TestPreAppStartClass(typeof(PreApplicationStartCode)); }
public void TestPreAppStartClass() { PreAppStartTestHelper.TestPreAppStartClass(typeof(Microsoft.Web.Helpers.PreApplicationStartCode)); }