コード例 #1
0
        public void Update_PanIsInitiallyDisabled()
        {
            var touch = new Touch {
                position = new Vector2(4, 4), deltaPosition = new Vector2(2, 2)
            };

            _gesturesScript.inputHandler = new MockInputHandler(new List <Touch> {
                touch
            });

            _gesturesScript.Update();

            var position = _camera.transform.position;

            Assert.AreEqual(0, position.x);
            Assert.AreEqual(0, position.y);
            Assert.AreEqual(0, position.z);
        }