public void EmptyValueIsDefault() { //Check to ensure that the default return value is null to reduce errors overall var sut = new Uprn(); var actual = sut.IsDefault(); Assert.That(actual, Is.True); }
public void NullUprnValueIsDefault() { var u1 = new Uprn(); var sut = new Uprn(u1.NullUprnValue); var actual = sut.IsDefault(); Assert.That(actual, Is.True); }
public void CorrectValueIsNotDefault() { //Test to see a correct value is no set as default (i.e. the default //is actually null long value = 12345; var sut = new Uprn(value); var actual = sut.IsDefault(); Assert.That(actual, Is.False); }
public void InvalidStringIsDefault([Values("abc", "def", "!$%^")] string value) { var sut = new Uprn(value); var actual = sut.IsDefault(); Assert.That(actual, Is.True); }