public void ShouldReturnNoBuildIfAllNoBuild() { subTrigger1Mock.ExpectAndReturn("Fire", null); subTrigger2Mock.ExpectAndReturn("Fire", null); Assert.IsNull(trigger.Fire()); VerifyAll(); }
public void ShouldReturnNoBuildIfAllNoBuild() { subTrigger1Mock.Setup(_trigger => _trigger.Fire()).Returns(() => null).Verifiable(); subTrigger2Mock.Setup(_trigger => _trigger.Fire()).Returns(() => null).Verifiable(); Assert.IsNull(trigger.Fire()); VerifyAll(); }
public void ShouldReturnNoBuildWhenNoTriggers() { trigger = new MultipleTrigger(); Assert.IsNull(trigger.Fire()); }