public void ToSpecielVejkodeIndikator_InvalidCode_ThrowsException( [Values(-20, -1, 0, 10000, 10022)] short roadCode) { var citizen = new CitizenReadyAddress() { RoadCode = roadCode }; citizen.ToSpecielVejkodeIndikator(); }
public void ToSpecielVejkodeIndikator_HighCode_ReturnsTrue( [Values(9900, 9950, 9999)] short roadCode) { var citizen = new CitizenReadyAddress() { RoadCode = roadCode }; var result = citizen.ToSpecielVejkodeIndikator(); Assert.True(result); }
public void ToSpecielVejkodeIndikator_LowCode_ReturnsFalse( [Values(1, 4, 5, 34, 500, 700, 899)] short roadCode) { var citizen = new CitizenReadyAddress() { RoadCode = roadCode }; var result = citizen.ToSpecielVejkodeIndikator(); Assert.False(result); }