public void TestMethod1() { bool expected = true; bool actual = box.Hit(new Vector2(110, 150)); Assert.AreEqual(expected, actual); }
public void TestMethod1() { RectangleHitbox testBox = new RectangleHitbox(10, 1000, new Vector2(0, 100), 0); bool actual = hb.Hit(testBox); bool expected = true; Assert.AreEqual(expected, actual); }
public void TestMethod1() { Mock <ICircle> circle = new Mock <ICircle>(); circle.Setup(x => x.FindClosestPoint(_box.Box.Position)).Returns(new Vector2(124, 124)); var point = circle.Object.FindClosestPoint(_box.Box.Position); var actual = _box.Hit(point); var expected = true; var second = _box.CheckHitbox(circle.Object); Assert.AreEqual(expected, actual); }