public void CompareSchoolVanDifferentObject() { SchoolVan aVan = new SchoolVan(); SchoolVan anotherVan = new SchoolVan(); int aTestId = 1; int test = 4; aVan.Id = aTestId; Assert.IsFalse(aVan.Equals(test)); }
public void CompareSchoolVanFail() { SchoolVan aVan = new SchoolVan(); SchoolVan anotherVan = new SchoolVan(); int aTestId = 1; int anotherTestId = 2; aVan.Id = aTestId; anotherVan.Id = anotherTestId; Assert.IsFalse(aVan.Equals(anotherVan)); }
public void CompareSchoolVanSuccess() { SchoolVan aVan = new SchoolVan(); SchoolVan anotherVan = new SchoolVan(); int aTestId = 1; aVan.Id = aTestId; aVan.FuelConsumption = 4; anotherVan.Id = aTestId; Assert.IsTrue(aVan.Equals(anotherVan)); }
public void AreEqualsSuccess() { SchoolVan aSchoolVan = new SchoolVan(); SchoolVan anotherSchoolVan = new SchoolVan(); aSchoolVan.Id = 1; anotherSchoolVan.Id = 1; List <Route> aListRoute = new List <Route>(); Route aNewRoute = new Route(); int expectedLength = 1; aListRoute.Add(aNewRoute); Assert.IsTrue(aSchoolVan.Equals(anotherSchoolVan) && aListRoute.Count == expectedLength); }