public void TestAdd()
        {
            int countAfterAdd = 1;

            collection.Add(country);
            Assert.AreEqual(countAfterAdd, collection.GetCollection().Count);
        }
예제 #2
0
 private void RefreshListCountry()
 {
     listCountry.Items.Clear();
     listBox_CarsCountry.Items.Clear();
     countryCollection.GetCollection().ForEach(delegate(Country countryItem)
     {
         listCountry.Items.Add(countryItem.Code + " " + countryItem.Name);
         listBox_CarsCountry.Items.Add(countryItem.Code + " " + countryItem.Name);
     });
 }