Exemplo n.º 1
0
        public void GetWallsCollectionTest()
        {
            Wall testWall = new Wall(new Point(3, 2), new Point(2, 2));

            instance.AddWall(testWall);
            ICollection <Wall> expectedResult = new List <Wall>();

            expectedResult.Add(testWall);
            ICollection <Wall> actualResult = instance.GetWalls();

            CollectionAssert.AreEquivalent((ICollection)expectedResult, (ICollection)actualResult);
        }
Exemplo n.º 2
0
        public void InsertFirstWallTest()
        {
            Wall testWall = new Wall(new Point(5, 5), new Point(8, 5));

            instance.InsertWall(new Point(5, 5), new Point(8, 5));
            ICollection <Wall> actualWallCollection = materials.GetWalls();
            IEnumerator <Wall> itr = actualWallCollection.GetEnumerator();

            itr.MoveNext();
            Wall actualResultWall = (Wall)itr.Current;

            Assert.AreEqual(testWall, actualResultWall);
        }