Пример #1
0
 public void NonEmptySelection()
 {
     using (UITextView tv = new UITextView()) {
         tv.Text = "Bla bla bla";
         tv.SelectAll(tv);
         Assert.That(tv.SelectedRange.Length, Is.Not.EqualTo(0), "SelectedRange");
         Assert.IsNotNull(tv.TypingAttributes, "TypingAttributes");
     }
 }
Пример #2
0
 public void NonEmptySelection()
 {
     using (UITextView tv = new UITextView()) {
         tv.Text = "Bla bla bla";
         tv.SelectAll(tv);
         Assert.That(tv.SelectedRange.Length, Is.Not.EqualTo(0), "SelectedRange");
         if (TestRuntime.CheckSystemAndSDKVersion(6, 0))
         {
             Assert.IsNotNull(tv.TypingAttributes, "TypingAttributes");
             // ^ this does not crash when a selection is made
         }
     }
 }