public void TestEmulateClearText()
 {
     WPFRichTextBox textBox = new WPFRichTextBox(Target);
     textBox.EmulateAppendText("A");
     textBox.EmulateClearText();
     Assert.AreEqual(string.Empty, textBox.Text);
 }
 public void TestEmulateAppendText()
 {
     WPFRichTextBox textBox = new WPFRichTextBox(Target);
     textBox.EmulateAppendText("A");
     textBox.EmulateAppendText("B");
     Assert.AreEqual("AB", textBox.Text);
 }
 public void TestEmulateAppendTextAsync()
 {
     WPFRichTextBox textBox = new WPFRichTextBox(Target);
     CallRemoteMethod("AttachChangeTextEvent", textBox);
     Async async = new Async();
     textBox.EmulateAppendText("A", async);
     ClickNextMessageBox();
     Assert.AreEqual("A", textBox.Text);
 }
 void Assert(string accessPath, WPFRichTextBox richTextBox)
 => CaptureAdaptor.AddCode($"{accessPath}.Text.Is({ToLiteral(richTextBox.Text)});");