Exemplo n.º 1
0
 public void WorldMove()
 {
     var expectedPosition = new Vector3(-10, 0, 0);
     var move = new Vector3(5, 0, 0);
     var world = GetTestWorld();
     var mover = new ConstantSpeedMover(world);
     mover.Move(move, 2);
     Assert.AreEqual(expectedPosition, world.Position);
 }
Exemplo n.º 2
0
 public void CharacterJumpTest()
 {
     var world = GetTestWorld();
     var mover = new ConstantSpeedMover(world);
     mover.Move(new Vector3(5,0,0), 1f);
     var playerControl = Substitute.For<IControl>();
     playerControl.Jump.Returns(Observable.Return(Unit.Default));
     var character = new Character(playerControl);
 }