public void NSTextInputClient_ShouldMarkText() { textView.SetMarkedText((NSString)"Testing", new NSRange(0, 10), new NSRange(5, 4)); Assert.IsTrue(textView.HasMarkedText, "NSTextInputClient_ShouldMarkText - Failed to mark text"); Assert.AreEqual(textView.MarkedRange, new NSRange(5, 7)); textView.UnmarkText(); }
public void NSTextInputClient_ShouldUnmarkText() { textView.SetMarkedText((NSString)"Testing", new NSRange(0, 10), new NSRange(5, 4)); Assert.IsTrue(textView.HasMarkedText, "NSTextInputClient_ShouldUnMarkText - Failed to mark text"); textView.UnmarkText(); Assert.IsFalse(textView.HasMarkedText, "NSTextInputClient_ShouldUnmarkText - Failed to Unmark text"); Assert.IsTrue(textView.MarkedRange.Length == 0, "NSTextInputClient_ShouldUnmarkText - MarkedRange is not 0"); }