public void AnimatableGetPropertyName() { tlog.Debug(tag, $"AnimatableGetPropertyName START"); var testingTarget = new Animatable(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <Animatable>(testingTarget, "should be an instance of ImageView class!"); testingTarget.RegisterProperty("dummy", new PropertyValue(6)); var index = testingTarget.GetPropertyIndex("dummy"); var result = testingTarget.GetPropertyName(index); Assert.AreEqual("dummy", result, "should be equal."); testingTarget.Dispose(); tlog.Debug(tag, $"AnimatableGetPropertyName END (OK)"); }
public void AnimatableRegisterPropertyWithAccessMode() { tlog.Debug(tag, $"AnimatableRegisterPropertyWithAccessMode START"); var testingTarget = new Animatable(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <Animatable>(testingTarget, "should be an instance of ImageView class!"); testingTarget.RegisterProperty("dummy", new PropertyValue(6), PropertyAccessMode.Animatable); var index = testingTarget.GetPropertyIndex("dummy"); testingTarget.GetProperty(index).Get(out int result); Assert.AreEqual(6, result, "should be equal."); testingTarget.Dispose(); tlog.Debug(tag, $"AnimatableRegisterPropertyWithAccessMode END (OK)"); }