예제 #1
0
        public void TimingFunction_5058()
        {
            var a = new SCNAction();

            Assert.Null(a.TimingFunction2, "TimingFunction2");
            Assert.Null(a.TimingFunction, "TimingFunction");
            a.TimingFunction2 = (float f) => {
                timeFunctionValue = f;
                return(timeFunctionValue);
            };
            Assert.That(a.TimingFunction2(Single.NaN), Is.NaN, "value returned");
            a.TimingFunction(Single.NaN);
            Assert.That(timeFunctionValue, Is.NaN, "TimingFunction assigned from TimingFunction2");
        }
예제 #2
0
        public void TimingFunction_5058()
        {
            // API was introduced in iOS 8, but it's broken (it copies the block pointer instead of copying the block itself, which means that a block stored on the stack will not behave as expected when trying to invoke it later)
            TestRuntime.AssertXcodeVersion(7, 0);
            var a = new SCNAction();

            Assert.Null(a.TimingFunction2, "TimingFunction2");
            Assert.Null(a.TimingFunction, "TimingFunction");
            a.TimingFunction2 = (float f) => {
                timeFunctionValue = f;
                return(timeFunctionValue);
            };
            Assert.That(a.TimingFunction2(Single.NaN), Is.NaN, "value returned");
            a.TimingFunction(Single.NaN);
            Assert.That(timeFunctionValue, Is.NaN, "TimingFunction assigned from TimingFunction2");
        }