Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }