public void CheckMarkTest() { Assert.True(RegMark.CheckMark("A111AA777")); Assert.True(RegMark.CheckMark("A252KH716")); Assert.False(RegMark.CheckMark("Q134JD788")); Assert.True(RegMark.CheckMark("B777XX777")); Assert.True(RegMark.CheckMark("A000AB716")); Assert.False(RegMark.CheckMark("A123BC000")); }
public void CheckMark_LessThen8Chars_ReturnsFalse() { //Arrange string vin = "A000AA4"; bool expected = false; //Act bool actual = RegMark.CheckMark(vin); //Assert Assert.AreEqual(expected, actual); }
public void CheckMark_CorrectRegMark_ReturnsTrue() { //Arrange string vin = "A000AA46"; bool expected = true; //Act bool actual = RegMark.CheckMark(vin); //Assert Assert.AreEqual(expected, actual); }