public void Remaining_ReturnRemainingTimeInterval() { //Arrange TimeInterval interval = new Milliseconds(321); TimeInterval elapsed = new Milliseconds(123); CountdownTime subject = new PrivateCtor <CountdownTime>(interval, elapsed); //Act TimeSpan actual = subject.Remaining(); //Assert actual.Should().Be(TimeSpan.FromMilliseconds(198)); }
public void ShouldDelegateRemaining() { //Arrange TimeInterval expected = new Seconds(100); MockCounter mockCounter = new MockCounter.Builder().Build(); MockCountdownTime mockCountdownTime = new MockCountdownTime.Builder().Remaining(expected).Build(); CountdownTracker subject = new PrivateCtor <CountdownTracker>(mockCounter, new NumberOf(1), mockCountdownTime); //Act TimeInterval actual = subject.Remaining(); //Assert actual.Should().Be(expected); }