Beispiel #1
0
        public void ThrowsIfAnimationClockIsNull()
        {
            var            animation = new SimpleDoubleAnimation();
            AnimationClock clock     = null;

            Assert.Throws <ArgumentNullException>(() =>
                                                  animation.GetCurrentValue(0d, 0d, clock));
        }
Beispiel #2
0
        public void ThrowsIfInputValuesHaveWrongType(object from, object to)
        {
            var animation = new SimpleDoubleAnimation();
            var clock     = new ControllableAnimationClock();

            Assert.Throws <InvalidOperationException>(() =>
                                                      animation.GetCurrentValue(from, to, clock));
        }
Beispiel #3
0
        public void HasCorrectTargetType()
        {
            var animation = new SimpleDoubleAnimation();

            Assert.Equal(typeof(double), animation.TargetPropertyType);
        }