public void TestvalidateTargetCyclesWithWrongValue_ExpectFailure() { var errorInfos = _validationHelper.ValidateAssetTargetHours( new List<AssetSettingsWeeklyTargets> { new AssetSettingsWeeklyTargets { Idle = new WeekDays{ Friday = 25, Monday = 25, Saturday = 25, Sunday = 25, Thursday = 25, Tuesday = 25, Wednesday = 25 }, Runtime = new WeekDays{ Friday = 2, Monday = 2, Saturday = 2, Sunday = 2, Thursday = 2, Tuesday = 2, Wednesday = 2 } }, new AssetSettingsWeeklyTargets { Runtime = new WeekDays{ Friday = 9, Monday = 9, Saturday = 9, Sunday = 9, Thursday = 9, Tuesday = 9, Wednesday = 9 }, Idle = new WeekDays{ Friday = 1, Monday = 1, Saturday = 1, Sunday = 1, Thursday =1, Tuesday = 1, Wednesday = 1 } } }.ToArray()); Assert.True(errorInfos.Count == 7); }