public void Given_A_String_Longer_Than_9_Characters_Should_Return_False() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("JJ123456AB"); Assert.IsFalse(result); }
public void Given_Next_6_Characters_Are_Numeric_Should_Return_True() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("JJ123456A"); Assert.IsTrue(result); }
public void Given_Second_Character_Is_Numeric_Should_Return_False() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("J0123456A"); Assert.IsFalse(result); }
public void Given_First_Two_Characters_Are_Alpha_Should_Return_True() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("JJ123456A"); Assert.IsTrue(result); }
public void Given_A_String_Which_is_9_Characters_Long_Should_Return_True() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("JJ123456A"); Assert.IsTrue(result); }
public void Given_First_2_Characters_Are_Numeric_Should_Return_False() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("00123456A"); Assert.IsFalse(result); }
public void Given_A_Null_Value_Should_Return_False() { NIValidator sut = new NIValidator(); bool result = sut.IsValid(null); Assert.IsFalse(result); }
public void Given_An_Empty_String_Should_Return_False() { NIValidator sut = new NIValidator(); bool result = sut.IsValid(""); Assert.IsFalse(result); }
public void Given_First_Character_Is_V_Should_Return_False() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("VJ123456C"); Assert.IsFalse(result); }
public void Given_Final_Character_Is_Z_Should_Return_False() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("JJ123456Z"); Assert.IsFalse(result); }
public void Given_All_Next_6_Characters_Are_Not_Numeric_Should_Return_False() { NIValidator sut = new NIValidator(); bool result = sut.IsValid("JJJJJJJJA"); Assert.IsFalse(result); }