public void TextEditorGetShadow() { tlog.Debug(tag, $"TextEditorGetShadow START"); var testingTarget = new TextEditor(true); Assert.IsNotNull(testingTarget, "Can't create success object TextEditor"); Assert.IsInstanceOf <TextEditor>(testingTarget, "Should be an instance of TextEditor type."); var setShadow = new Tizen.NUI.Text.Shadow() { BlurRadius = 5.0f, Color = Color.Red, Offset = new Vector2(3, 3), }; testingTarget.SetShadow(setShadow); var getShadow = testingTarget.GetShadow(); Assert.AreEqual(getShadow.BlurRadius, setShadow.BlurRadius, "Should be equal!"); Assert.AreEqual(true, CheckColor(getShadow.Color, setShadow.Color), "Should be true!"); Assert.AreEqual(true, CheckVector2(getShadow.Offset, setShadow.Offset), "Should be true!"); testingTarget.Dispose(); tlog.Debug(tag, $"TextEditorGetShadow END (OK)"); }
public void ShadowEquals() { tlog.Debug(tag, $"ShadowEquals START"); var shadow = new Tizen.NUI.Text.Shadow(); Assert.IsNotNull(shadow, "Can't create success object strikethrough"); Assert.IsInstanceOf <Tizen.NUI.Text.Shadow>(shadow, "Should be an instance of shadow type."); var compare = new Tizen.NUI.Text.Shadow(); Assert.IsTrue(shadow == compare, "Should be true!"); Assert.AreEqual(shadow.GetHashCode(), compare.GetHashCode(), "Should be true!"); compare.BlurRadius = 5.0f; Assert.IsTrue(shadow != compare, "Should be true!"); tlog.Debug(tag, $"ShadowEquals END (OK)"); }