public void TextEditorGetSelectionHandleMarkerImage() { tlog.Debug(tag, $"TextEditorGetSelectionHandleMarkerImage 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 setSelectionHandleImage = new Tizen.NUI.Text.SelectionHandleImage() { LeftImageUrl = "leftImage", RightImageUrl = "rightImage", }; testingTarget.SetSelectionHandleMarkerImage(setSelectionHandleImage); var getSelectionHandleImage = testingTarget.GetSelectionHandleMarkerImage(); Assert.AreEqual(getSelectionHandleImage.LeftImageUrl, setSelectionHandleImage.LeftImageUrl, "Should be equal!"); Assert.AreEqual(getSelectionHandleImage.RightImageUrl, setSelectionHandleImage.RightImageUrl, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"TextEditorGetSelectionHandleMarkerImage END (OK)"); }
public void SelectionHandleImageEquals() { tlog.Debug(tag, $"SelectionHandleImageEquals START"); var selectionHandleImage = new Tizen.NUI.Text.SelectionHandleImage(); Assert.IsNotNull(selectionHandleImage, "Can't create success object strikethrough"); Assert.IsInstanceOf <Tizen.NUI.Text.SelectionHandleImage>(selectionHandleImage, "Should be an instance of selectionHandleImage type."); var compare = new Tizen.NUI.Text.SelectionHandleImage(); Assert.IsTrue(selectionHandleImage == compare, "Should be true!"); Assert.AreEqual(selectionHandleImage.GetHashCode(), compare.GetHashCode(), "Should be true!"); compare.LeftImageUrl = "left image url"; Assert.IsTrue(selectionHandleImage != compare, "Should be true!"); tlog.Debug(tag, $"SelectionHandleImageEquals END (OK)"); }