public void TextShadowConstructor() { tlog.Debug(tag, $"TextShadowConstructor START"); using (Vector2 vector = new Vector2(1.5f, 3.0f)) { var testingTarget = new TextShadow(Color.Cyan, vector, 0.3f); Assert.IsNotNull(testingTarget, "Can't create success object TextShadow"); Assert.IsInstanceOf <TextShadow>(testingTarget, "Should be an instance of TextShadow type."); testingTarget.Dispose(); } tlog.Debug(tag, $"TextShadowConstructor END (OK)"); }
public void TextShadowConstructorWithPropertyMap() { tlog.Debug(tag, $"TextShadowConstructorWithPropertyMap START"); TextLabel textLabel = new TextLabel() { Text = "TextShadowConstructor", Color = Color.Green, PointSize = 15.0f, }; PropertyMap temp = new PropertyMap(); Tizen.NUI.Object.GetProperty((global::System.Runtime.InteropServices.HandleRef)textLabel.SwigCPtr, TextLabel.Property.SHADOW).Get(temp); var testingTarget = new TextShadow(temp); Assert.IsNotNull(testingTarget, "Can't create success object TextShadow"); Assert.IsInstanceOf <TextShadow>(testingTarget, "Should be an instance of TextShadow type."); textLabel.Dispose(); testingTarget.Dispose(); tlog.Debug(tag, $"TextShadowConstructorWithPropertyMap END (OK)"); }
public void TextShadowConstructorWithTextShadow() { tlog.Debug(tag, $"TextShadowConstructorWithTextShadow START"); using (Vector2 vector = new Vector2(1.5f, 3.0f)) { using (TextShadow shadow = new TextShadow(Color.Cyan, vector, 0.3f)) { try { var testingTarget = new TextShadow(shadow); testingTarget.Dispose(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } } } tlog.Debug(tag, $"TextShadowConstructorWithTextShadow END (OK)"); }