コード例 #1
0
        public void EaseFuncTest()
        {
            var          param0   = new PrivateObject(new PropertyOps("", 0, false));
            var          target   = new PropertyOps_Accessor(param0);
            EaseFunction expected = Ease.Linear;

            target.EaseFunc = expected;
            EaseFunction actual = target.EaseFunc;

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void StartValueTest()
        {
            var    param0   = new PrivateObject(new PropertyOps("", 0, false));
            var    target   = new PropertyOps_Accessor(param0);
            object expected = 10;

            target.StartValue = expected;
            object actual = target.StartValue;

            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
        public void EaseExParamsTest()
        {
            var param0 = new PrivateObject(new PropertyOps("", 0, false));
            var target = new PropertyOps_Accessor(param0);

            object[] expected = new object[] { 10, "a", 10.0F };
            target.EaseExParams = expected;
            object[] actual = target.EaseExParams;
            // we need to get the same object back
            Assert.AreEqual(expected, actual);
            // the object need to have 3 elements in it
            Assert.AreEqual(3, actual.Length);
        }