public void FindAll() { Form one = ShowNewForm("form"); Form two = ShowNewForm("form2"); Form three = ShowNewForm("form3"); List <Form> found = finder.FindAll(); Assert.Equal(3, found.Count); Assert.True(found.Contains(one)); Assert.True(found.Contains(two)); Assert.True(found.Contains(three)); }
public void FindOneFormOutOfTwo() { Form one = ShowNewForm("form"); Form two = ShowNewForm("form2"); Assert.AreEqual(2, finder.FindAll().Count); Form found = finder.Find("form"); Assert.AreSame(one, found); found = finder.Find("form2"); Assert.AreSame(two, found); }