public void TimeUsed_ReturnsBuilder() { var testObject = new OpenDialogCriteriaBuilder(); var builder = testObject.TimeUsed(TimeSpan.FromHours(3)); builder.Should().Be(testObject); }
public void TimeUsed_AddsCriteriaWithValue() { var testObject = new OpenDialogCriteriaBuilder(); testObject.TimeUsed(TimeSpan.FromHours(3)); testObject.OpenDialogCriteria.OfType <TimeUsedCriteria>().Should().HaveCount(1); testObject.OpenDialogCriteria.OfType <TimeUsedCriteria>() .First() .TimesOpen.Should() .Be(TimeSpan.FromHours(3)); }