public void TimeoutIsSetCorrectly() { var timeout = TimeSpan.FromMilliseconds(42); var updateTimeoutMessage = new UpdateTimeout(timeout); Assert.Equal(timeout, updateTimeoutMessage.Timeout); }
/// <summary> /// Updates the <see cref="_totalEvaluationTimeout" />. /// </summary> /// <param name="update">Message that caused the update.</param> private void HandleTimeoutUpdate(UpdateTimeout update) { this._totalEvaluationTimeout = TimeSpanUtil.Min(update.Timeout, this._totalEvaluationTimeout); }