public void SetupAndRun_WhenCalledAndSetupFails_DoesNotCallApplicationRun() { FailingSetupStartupMock sut = new FailingSetupStartupMock(); sut.SetupAndRun(null); Assert.IsTrue(sut.ApplicationSetupWasCalled); Assert.IsFalse(sut.ApplicationRunWasCalled); }
public void Setup_WhenTheresAnException_Returns1ByDefault() { var sut = new FailingSetupStartupMock(); Assert.AreEqual(1, sut.Setup(null)); }