public void WierdLongValuesAreNotValid([Values(-1, 0, 01234567890123)] long input) { var uprn = new Uprn(input); var actual = uprn.IsValidUprn(uprn); Assert.That(actual, Is.False); }
public void WierdValuesAreNotValid([Values("", "-1", "01234567890123", "e", "uprn", " 0.12")] string input) { var uprn = new Uprn(input); var actual = uprn.IsValidUprn(uprn); Assert.That(actual, Is.False); }
public void SensibleStringValuesAreValid([Values("1", "8090", "0123456789012", " 23 ")] string input) { var uprn = new Uprn(input); var actual = uprn.IsValidUprn(uprn); Assert.That(actual, Is.True); }
public void SensibleLongValuesAreValid([Values(1, 8090, 0123456789012, 23)] long input) { var uprn = new Uprn(input); var actual = uprn.IsValidUprn(uprn); Assert.That(actual, Is.True); }