public void GetDayOfWeekFor(DayOfWeek expectedDayOfWeek, IEnumerable <int> days) { // arrange ConditionFactory factory = new ConditionFactory(); foreach (int day in days) { DayOfWeek actual = factory.GetDayOfWeekFor(day); // assert actual.Should().Be(expectedDayOfWeek, $"{nameof(ConditionFactory.GetDayOfWeekFor)} should return {expectedDayOfWeek} for day {day}"); } }