Example #1
0
        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);
            }
        }
Example #2
0
 public void TestRealVinWithPInsteadOfF()
 {
     Assert.IsFalse(Vin.IsValid("1PTKR1ADXAPA11957"), "Is false because I replaced F with P.");
 }
Example #3
0
 public void TestRealVin()
 {
     Assert.IsTrue(Vin.IsValid("1FTKR1ADXAPA11957"), "Is true because this is a real VIN (I hope)");
 }
Example #4
0
 public void TestOneThree()
 {
     Assert.IsFalse(Vin.IsValid("11111111111111113"), "Is false because I changed the last 1 to a 3.");
 }
Example #5
0
 public void Test18Ones()
 {
     Assert.IsFalse(Vin.IsValid("111111111111111111"), "Is false because it's 18 characters.");
 }
Example #6
0
 public void Test17Ones()
 {
     Assert.IsTrue(Vin.IsValid("11111111111111111"), "Is true because all ones pass.");
 }