Beispiel #1
0
 public bool Equals(PsaTrace another)
 {
     if (Vin.Equals(another.Vin, StringComparison.OrdinalIgnoreCase) &&
         Date == another.Date)
     {
         return(true);
     }
     return(false);
 }
Beispiel #2
0
        public void TestVinEquality()
        {
            var testVinValue = "3N1CN7AP0GL861987";
            var testSubject  = new Vin {
                Value = testVinValue
            };

            var compareTest = new Vin {
                Value = testVinValue
            };

            Assert.IsTrue(testSubject.Equals(compareTest));
        }