public void ShadowGetPropertyMap() { tlog.Debug(tag, $"ShadowGetPropertyMap START"); var testingTarget = new MyShadow(); Assert.IsNotNull(testingTarget, "Can't create success object Shadow"); Assert.IsInstanceOf <Shadow>(testingTarget, "Should be an instance of Shadow type."); testingTarget.Offset = new Vector2(0.8f, 0.5f); testingTarget.Extents = new Vector2(1.2f, 1.3f); testingTarget.Color = Color.Cyan; testingTarget.BlurRadius = 0.3f; try { testingTarget.OnGetPropertyMap(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } tlog.Debug(tag, $"ShadowGetPropertyMap END (OK)"); }
public void ShadowBaseToPropertyValue() { tlog.Debug(tag, $"ShadowBaseToPropertyValue START"); var testingTarget = new MyShadow(); Assert.IsNotNull(testingTarget, "Can't create success object Shadow"); Assert.IsInstanceOf <Shadow>(testingTarget, "Should be an instance of Shadow type."); using (View view = new View()) { view.CornerRadius = new Vector4(0.1f, 0.9f, 0.7f, 0.0f); var result = testingTarget.ToPropertyValue(view); Assert.IsNotNull(result, "Can't create success object PropertyValue"); Assert.IsInstanceOf <PropertyValue>(result, "Should be an instance of PropertyValue type."); } tlog.Debug(tag, $"ShadowBaseToPropertyValue END (OK)"); }