public void Should_Set_Reentrent_Parameter_For_Child_Schedules() { var task = new Mock<ITask>(); var schedule = new Schedule(task.Object); schedule.NonReentrant().ToRunNow().AndEvery(1).Minutes(); schedule.Reentrant.Should().Be.False(); foreach (var child in schedule.AdditionalSchedules) { child.Reentrant.Should().Be.False(); } }
public void Should_Set_Reentrent_Parameter_For_Child_Schedules() { // Arrange var task = new Mock<ITask>(); // Act var schedule = new Schedule(task.Object); schedule.NonReentrant().ToRunNow().AndEvery(1).Minutes(); // Assert Assert.IsFalse(schedule.Reentrant); foreach (var child in schedule.AdditionalSchedules) Assert.IsFalse(child.Reentrant); }