예제 #1
0
        public void OptionNames()
        {
            var s     = new TypingAnimationOptions();
            var names = s.GetOptionNames();

            Assert.AreEqual(propertyNames.Count, names.Count);
        }
예제 #2
0
        public void DurationCustom()
        {
            var propertyIndex = 1;
            var expectedValue = 500;

            var src = new TypingAnimationOptions {
                Duration = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
예제 #3
0
        public void BackgroundImageCustom()
        {
            var propertyIndex = 0;
            var expectedValue = "x.jpg";

            var src = new TypingAnimationOptions {
                BackgroundImage = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
예제 #4
0
        public void WidthCustom()
        {
            var propertyIndex = 3;
            var expectedValue = 100;

            var src = new TypingAnimationOptions {
                Width = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
예제 #5
0
        public void HeightCustom()
        {
            var propertyIndex = 2;
            var expectedValue = 50;

            var src = new TypingAnimationOptions {
                Height = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
예제 #6
0
        public void EmptyContructor()
        {
            var src = new TypingAnimationOptions
            {
            };

            var so = PopulateOptions(src);

            Assert.AreEqual(0, so.Count);

            so = PopulateOptions(src, true);
            Assert.AreEqual(4, so.Count);
        }
예제 #7
0
        public void DurationDefault()
        {
            var propertyIndex = 1;
            var expectedValue = TypingAnimationOptions.Defaults.Duration;
            var src           = new TypingAnimationOptions {
            };

            var so = PopulateOptions(src);

            AssertEmptyProperty(so, propertyIndex);

            so = PopulateOptions(src, true);
            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
예제 #8
0
        public void BackgroundImageDefault()
        {
            var propertyIndex = 0;
            var expectedValue = TypingAnimationOptions.Defaults.BackgroundImage;
            var src           = new TypingAnimationOptions {
            };

            var so = PopulateOptions(src);

            AssertEmptyProperty(so, propertyIndex);

            so = PopulateOptions(src, true);
            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }