public void DebugDrawInterfaceTest() { DiscreteDynamicsWorld world = _context.World; world.StepSimulation(1.0f / 60.0f); using (var debugDrawer = new DebugDrawer()) { world.DebugDrawer = debugDrawer; world.DebugDrawObject(Matrix.Identity, _shape, new Vector3(1, 0, 0)); Assert.That(debugDrawer.DrawBoxCalled, Is.True); Assert.That(debugDrawer.DrawLineCalled, Is.True); world.DebugDrawer = null; } using (var debugDrawer = new DebugDrawer()) { world.DebugDrawer = debugDrawer; world.DebugDrawWorld(); Assert.That(debugDrawer.DrawBoxCalled, Is.True); Assert.That(debugDrawer.DrawLineCalled, Is.True); world.DebugDrawer = null; } }