Exemplo n.º 1
0
        public void TestGetValues()
        {
            KeyValuePair <string, double>[] fromValues = new KeyValuePair <string, double> [_values.Count];
            _values.CopyTo(fromValues, 0);

            var tween        = new GTween(_target, TweenDuration, _values);
            var fromInstance = tween.GetValues();

            Assert.AreEqual(fromValues.Length, fromInstance.Count);
            Assert.IsTrue(fromInstance.ContainsKey(fromValues[0].Key));
        }