Ejemplo n.º 1
0
        public void ThrowsIfAnimationClockIsNull()
        {
            var            animation = new SimpleDoubleAnimation();
            AnimationClock clock     = null;

            Assert.Throws <ArgumentNullException>(() =>
                                                  animation.GetCurrentValue(0d, 0d, clock));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
        public void HasCorrectTargetType()
        {
            var animation = new SimpleDoubleAnimation();

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