Exemple #1
0
        public void ShouldReturnAllAnimatableProperties()
        {
            var widthProperty  = new AnimatableProperty <float>();
            var heightProperty = new AnimatableProperty <float>();
            var textProperty   = new AnimatableProperty <string>();
            var animatable     = new AnimatableObject("Object");

            animatable.Properties.Add("Width", widthProperty);
            animatable.Properties.Add("Height", heightProperty);
            animatable.Properties.Add("Text", textProperty);

            Assert.That(animatable.GetAnimatedProperties(), Has.Member(widthProperty));
            Assert.That(animatable.GetAnimatedProperties(), Has.Member(heightProperty));
            Assert.That(animatable.GetAnimatedProperties(), Has.Member(textProperty));
        }