public void ValidateEveryMinuteNotLessThanZero() { var template = new MinuteScheduleTemplate(-1); var errors = template.Validate(); errors.Should().BeEquivalentTo(new string[] { "Time must be less than 1 day" }); }
public void ValidateEveryMinuteNotZero() { var template = new MinuteScheduleTemplate(0); var errors = template.Validate(); errors.Should().Equal(new string[] { "Time must be less than 1 day" }); }