public void EmptyValueGivesIsValidFalse() { //Test to ensure an empty value is recorded as not being a valid result var sut = new Usrn(); var actual = sut.IsValid(); Assert.False(actual); }
public void ValidUsrnIsValid() { var input = new Usrn(123); var actual = input.IsValid(); Assert.That(actual, Is.True); }
public void InvalidStringIsValidFalse([Values("abc", "def", "!$%^")] string value) { var sut = new Usrn(value); var actual = sut.IsValid(); Assert.False(actual); }
/// <inheritdoc /> public bool ValidUsrn(long usrn) { var _usrn = new Usrn(usrn); return(_usrn.IsValid()); }