public void Should_show_correct_error_for_min_rule() { Assert.IsTrue(RuleErrors.Any(x => x.Id == 2 && x.RuleId == "100.3")); Assert.IsTrue(RuleErrors.Any(x => x.Id == 3 && x.RuleId == "100.3")); Assert.IsTrue(RuleErrors.Any(x => x.Id == 4 && x.RuleId == "100.3")); }
public void Should_count_without_when() { Assert.IsFalse(RuleErrors.Any(x => x.RuleId == "100.1")); }
public void Should_fail_for_second_data_element() { Assert.IsTrue(RuleErrors.Any(x => x.Id == 2 && x.RuleId == "100.1")); }
public void Should_sum_across_group() { Assert.IsTrue(RuleErrors.Any(x => x.Id == 2 && x.RuleId == "100.4")); }
public void Should_count_with_when() { Assert.IsTrue(RuleErrors.Any(x => x.Id == 2 && x.RuleId == "100.2")); }
public void Should_subtract_days_between_dates() { Assert.AreEqual(1, RuleErrors.Count); Assert.IsTrue(RuleErrors.Any(x => x.Id == 3)); }
public void Should_count_across_all() { Assert.IsTrue(RuleErrors.Any(x => x.Id == 2 && x.RuleId == "100.1")); }
public void Should_compute_latest_dates() { Assert.AreEqual(1, RuleErrors.Count(x => x.RuleId == "100.2")); Assert.IsTrue(RuleErrors.Any(x => x.Id == 2)); }
public void Should_pass_first_data_point() { Assert.IsFalse(RuleErrors.Any(x => x.Id == 1)); }
public void Should_not_error_on_existing_value() { Assert.IsFalse(RuleErrors.Any(x => x.Id == 1)); }
public void Should_not_error_on_string_in_lookup() { Assert.IsFalse(RuleErrors.Any(x => x.Id == 1)); Assert.IsFalse(RuleErrors.Any(x => x.Id == 2)); Assert.IsFalse(RuleErrors.Any(x => x.Id == 3)); }
public void Should_not_match_second_component() { Assert.AreEqual(2, RuleErrors.Count); Assert.IsTrue(RuleErrors.Any(x => x.Id == 2 && x.RuleId == "100.1")); Assert.IsTrue(RuleErrors.Any(x => x.Id == 2 && x.RuleId == "100.2")); }