public void Move_Speed1Direction_CorrectDestination(float directionx, float directiony, float directionz, float expectedx, float expectedy, float expectedz) { MyQuaternion rotation = new MyQuaternion(); Vector3 direction = new Vector3(directionx, directiony, directionz); rotation.SetLookRotation(direction); ShipData shipData = new ShipData(); shipData.Rotation = rotation; shipData.Speed = 1f; Ship sut = new Ship(shipData); sut.Tick(); Vector3 actual = sut.Data.Position; Assert.That(actual.x, Is.EqualTo(expectedx).Within(0.1), "Wrong value in X"); Assert.That(actual.y, Is.EqualTo(expectedy).Within(0.1), "Wrong value in Y"); Assert.That(actual.z, Is.EqualTo(expectedz).Within(0.1), "Wrong value in Z"); }