public void CountPropertyOK() { clsCarTypeCollection AllCarTypes = new clsCarTypeCollection(); Int32 SomeCount = 6; AllCarTypes.Count = SomeCount; Assert.AreEqual(AllCarTypes.Count, SomeCount); }
void DisplayAllCarTypes() { clsCarTypeCollection CarTypes = new clsCarTypeCollection(); drpCarType.DataSource = CarTypes.AllCarTypes; drpCarType.DataValueField = "CarTypeNo"; drpCarType.DataTextField = "CarType"; drpCarType.DataBind(); }
public void CountMatchesList() { clsCarTypeCollection CarTypes = new clsCarTypeCollection(); List <clsCarType> TestList = new List <clsCarType>(); clsCarType TestItem = new clsCarType(); TestItem.CarTypeNo = 1; TestItem.CarType = "Hatchback"; TestList.Add(TestItem); CarTypes.AllCarTypes = TestList; Assert.AreEqual(CarTypes.Count, TestList.Count); }
public void InstanceOK() { clsCarTypeCollection AllCarTypes = new clsCarTypeCollection(); Assert.IsNotNull(AllCarTypes); }