public void TestVINClicked(object sender, EventArgs e) { if (Vin.IsValid(VINNumber.Text) == false) { DisplayAlert("Vin Number", "VIN number is not valid", "Ok"); } else { Year.Text = Vin.GetModelYear(VINNumber.Text).ToString(); Manufacturer.SelectedItem = Vin.GetWorldManufacturer(VINNumber.Text); } }
public void TestRealVinWithPInsteadOfF() { Assert.IsFalse(Vin.IsValid("1PTKR1ADXAPA11957"), "Is false because I replaced F with P."); }
public void TestRealVin() { Assert.IsTrue(Vin.IsValid("1FTKR1ADXAPA11957"), "Is true because this is a real VIN (I hope)"); }
public void TestOneThree() { Assert.IsFalse(Vin.IsValid("11111111111111113"), "Is false because I changed the last 1 to a 3."); }
public void Test18Ones() { Assert.IsFalse(Vin.IsValid("111111111111111111"), "Is false because it's 18 characters."); }
public void Test17Ones() { Assert.IsTrue(Vin.IsValid("11111111111111111"), "Is true because all ones pass."); }