예제 #1
0
        public void TestSquareIsAt()
        {
            Square _square = new Square ();
            //Defaulted to base constructor x, y, width, height = 25

            Assert.IsTrue ( _square.IsAt (SwinGame.PointAt (25, 25) ));
            Assert.IsTrue ( _square.IsAt (SwinGame.PointAt (44, 44) ));

            Assert.IsFalse ( _square.IsAt (SwinGame.PointAt (90, 44) ));
            Assert.IsFalse ( _square.IsAt (SwinGame.PointAt (10, 30) ));
        }