public void PositionSet_TransformPositionEqualsPosition() { FlyTarget flyTarget = InstantiateTarget(); flyTarget.Position = _testPosition; Assert.AreEqual(flyTarget.Position, (Vector2)flyTarget.transform.position); GameObject.Destroy(flyTarget.gameObject); }
public void PositionSet_SetsPosition() { FlyTarget flyTarget = InstantiateTarget(); flyTarget.Position = _testPosition; Assert.AreEqual(_testPosition, flyTarget.Position); GameObject.Destroy(flyTarget.gameObject); }