private void button3_Click(object sender, EventArgs e) { myConnection.BuildForum(textBox1.Text); textBox1.Clear(); listBox1.Items.Clear(); CurrentState.allForum = myConnection.WatchAllForums(); for (int i = 0; i < CurrentState.allForum.Count(); i++) { listBox1.Items.Add(CurrentState.allForum.ElementAt(i).name); } }
public void TestBuildForum() //need to return true only to values { Assert.IsTrue(forum.BuildForum("test1")); Assert.IsFalse(forum.BuildForum("test2")); }
private void button3_Click(object sender, EventArgs e) { myConnection.BuildForum(textBox1.Text); textBox1.Clear(); listBox1.Items.Clear(); }