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