public void TestWebActivatorPreStartMethodsInDesignerModeGetCalled() { ActivationManager.RunPreStartMethods(designerMode: true); Assert.IsTrue(TestLibrary.MyStartupCode.StartCalled); Assert.IsFalse(TestLibrary.MyStartupCode.Start2Called); Assert.IsFalse(TestLibrary.MyStartupCode.CallMeAfterAppStartCalled); }
public void TestWebActivatorPreStartMethodsGetCalled() { ActivationManager.RunPreStartMethods(); Assert.True(MyStartupCode.StartCalled); Assert.True(MyStartupCode.Start2Called); Assert.False(MyStartupCode.CallMeAfterAppStartCalled); }