public void ThrowsIfAnimationClockIsNull() { var animation = new SimpleDoubleAnimation(); AnimationClock clock = null; Assert.Throws <ArgumentNullException>(() => animation.GetCurrentValue(0d, 0d, clock)); }
public void ThrowsIfInputValuesHaveWrongType(object from, object to) { var animation = new SimpleDoubleAnimation(); var clock = new ControllableAnimationClock(); Assert.Throws <InvalidOperationException>(() => animation.GetCurrentValue(from, to, clock)); }
public void HasCorrectTargetType() { var animation = new SimpleDoubleAnimation(); Assert.Equal(typeof(double), animation.TargetPropertyType); }