public RequiredTimeout ( int numberOfTimeoutsComplete ) : System.TimeSpan | ||
numberOfTimeoutsComplete | int | |
리턴 | System.TimeSpan |
public void TwoTimeoutsSet_Return60Seconds() { var timeoutCalculator = new TimeoutCalculator(); const int numberOfTimeoutsComplete = 2; var timeout = timeoutCalculator.RequiredTimeout(numberOfTimeoutsComplete); Assert.That(timeout, Is.EqualTo(new TimeSpan(0,1,0))); }
public void ThreeTimeoutsSet_Return5Minutes() { var timeoutCalculator = new TimeoutCalculator(); const int numberOfTimeoutsComplete = 3; var timeout = timeoutCalculator.RequiredTimeout(numberOfTimeoutsComplete); Assert.That(timeout, Is.EqualTo(new TimeSpan(0,5,0))); }