public void TestEmulateClearText() { WPFRichTextBox textBox = new WPFRichTextBox(Target); textBox.EmulateAppendText("A"); textBox.EmulateClearText(); Assert.AreEqual(string.Empty, textBox.Text); }
public void TestEmulateClearTextAsync() { WPFRichTextBox textBox = new WPFRichTextBox(Target); textBox.EmulateAppendText("A"); CallRemoteMethod("AttachChangeTextEvent", textBox); Async async = new Async(); textBox.EmulateClearText(async); ClickNextMessageBox(); Assert.AreEqual(string.Empty, textBox.Text); }