public void WhenReadyAndCallingReset_DoResetShouldNotBeCalled(BehaviourStatus status) { var sut = new MockBehaviour { ReturnStatus = status }; Assert.That(sut.ResetCount, Is.EqualTo(0)); sut.Reset(); Assert.That(sut.ResetCount, Is.EqualTo(0)); }
public void WhenNotReadyAndCallingReset_DoResetShouldBeCalled(BehaviourStatus status) { var sut = new MockBehaviour { ReturnStatus = status }; Assert.That(sut.ResetCount, Is.EqualTo(0)); sut.Tick(new MockContext()); sut.Reset(); Assert.That(sut.ResetCount, Is.EqualTo(1)); Assert.That(sut.ResetStatus, Is.EqualTo(status)); }