public void OptionNames() { var s = new TypingAnimationOptions(); var names = s.GetOptionNames(); Assert.AreEqual(propertyNames.Count, names.Count); }
public void DurationCustom() { var propertyIndex = 1; var expectedValue = 500; var src = new TypingAnimationOptions { Duration = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void BackgroundImageCustom() { var propertyIndex = 0; var expectedValue = "x.jpg"; var src = new TypingAnimationOptions { BackgroundImage = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void WidthCustom() { var propertyIndex = 3; var expectedValue = 100; var src = new TypingAnimationOptions { Width = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
public void HeightCustom() { var propertyIndex = 2; var expectedValue = 50; var src = new TypingAnimationOptions { Height = expectedValue }; var so = PopulateOptions(src); AssertPopulatedProperty(so, propertyIndex, expectedValue); }
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); }
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); }
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); }