示例#1
0
        public void CircleHitOctagonTest()
        {
            var oct    = new OctagonHitbox(50, 50, new Vector2(120, 210));
            var actual = c.Hit(oct);

            Assert.AreEqual(true, actual);
        }
示例#2
0
        public void TestMethod3()
        {
            var  testBox  = new OctagonHitbox(20, 2000, new Vector2(200, 140));
            bool expected = true;
            bool actual   = box2.Hit(testBox);

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void TestMethod2()
        {
            OctagonHitbox testbox = new OctagonHitbox(20, 20, new Vector2(150, 60));

            bool actual = hitbox.Hit(testbox);

            bool expected = true;

            Assert.AreEqual(expected, actual);
        }