public void FilterOK() { string data = "Gym"; clsOrderCollection order = new clsOrderCollection(); clsOrderCollection test = new clsOrderCollection(); clsDataConnection db = new clsDataConnection(); order.Filter(data); order.PopulateList(db); test.Filter(data); test.PopulateList(db); Assert.AreEqual(order.list.Count, test.list.Count); }
private void filter_Click(object sender, EventArgs e) { if (textBox6.Text != null) { col.Filter(textBox6.Text); listBox1.Items.Clear(); fillListBox(col.list); MessageBox.Show("Items have been filtered"); } else { MessageBox.Show("Please enter some data into the filter field"); } }