public SpeedIsNotClampedWhenSpeedIsExactlyAtLimit ( ) : void | ||
Résultat | void |
public void SpeedIsNotClampedWhenSpeedIsExactlyAtLimit()
{
var kernel = new StandardKernel();
kernel.Load<ProtogameCoreModule>();
kernel.Load<ProtogamePlatformingIoCModule>();
var platforming = kernel.Get<IPlatforming>();
var boundingBox = this.CreateBoundingBox(0, 0, 0, 0, 10, 10);
platforming.ClampSpeed(boundingBox, 10, 10);
_assert.Equal(10, boundingBox.XSpeed);
_assert.Equal(10, boundingBox.YSpeed);
}