public void Should_compute_min() { Assert.IsTrue(RuleErrors.Count(x => x.RuleId == "100.2") == 1); }
public void Should_compute_max() { Assert.IsTrue(RuleErrors.Count(x => x.RuleId == "100.1") == 0); }
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_error_on_nonexisting_value() { Assert.AreEqual(1, RuleErrors.Count(x => x.Id == 2)); Assert.AreEqual(1, RuleErrors.Count(x => x.RuleId == "100.0")); }
public void Should_error_on_string_not_in_lookup() { Assert.AreEqual(1, RuleErrors.Count(x => x.Id == 4)); Assert.AreEqual(1, RuleErrors.Count(x => x.Id == 5)); Assert.AreEqual(2, RuleErrors.Count(x => x.RuleId == "100.0")); }
public void Should_error_on_string_not_in_lookup() { Assert.AreEqual(1, RuleErrors.Count(x => x.Id == 4)); Assert.IsFalse(RuleErrors.SingleOrDefault(x => x.RuleId == "100.0") == null); }