public void SchoolVanLengthSuccess() { SetUp(); SchoolVan newSchoolVan = new SchoolVan(); SchoolVanLogic testLogic = new SchoolVanLogic(); testLogic.Add(newSchoolVan); Assert.IsTrue(testLogic.Length() == 1); }
public void AddSchoolVanDifferentObjectFail() { SetUp(); SchoolVanLogic testLogic = new SchoolVanLogic(); int test = 0; testLogic.Add(test); int expectedSchoolVanListLength = 0; Assert.IsTrue(testLogic.Length() == expectedSchoolVanListLength); }
public void AddSchoolVanFail() { SetUp(); SchoolVan newSchoolVan = new SchoolVan(); SchoolVanLogic testLogic = new SchoolVanLogic(); testLogic.Add(newSchoolVan); SchoolVan anotherNewSchoolVan = new SchoolVan(); testLogic.Add(anotherNewSchoolVan); int expectedSchoolVanListLength = 2; Assert.IsTrue(testLogic.Length() == expectedSchoolVanListLength); }