public override void IsContentElement() { TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker(new TextBlock()); Assert.IsTrue(tbap.IsContentElement(), "IsContentElement"); Assert.IsTrue(tbap.IsContentElementCore_(), "IsContentElementCore"); }
public override void GetAutomationControlType() { TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker(new TextBlock()); Assert.AreEqual(AutomationControlType.Text, tbap.GetAutomationControlType(), "GetAutomationControlType"); Assert.AreEqual(AutomationControlType.Text, tbap.GetAutomationControlTypeCore_(), "GetAutomationControlTypeCore"); }
public override void GetName() { TextBlock textblock = new TextBlock(); TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker(textblock); Assert.AreEqual(String.Empty, tbap.GetName(), "GetName"); Assert.AreEqual(String.Empty, tbap.GetNameCore_(), "GetNameCore"); string textBlockname = "Textblock name!"; textblock.Text = textBlockname; Assert.AreEqual(textBlockname, tbap.GetName(), "GetName #1"); Assert.AreEqual(textBlockname, tbap.GetNameCore_(), "GetNameCore #1"); textblock.Text = null; Assert.AreEqual(string.Empty, tbap.GetName(), "GetName #2"); Assert.AreEqual(string.Empty, tbap.GetNameCore_(), "GetNameCore #2"); }
public override void IsContentElement () { TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker (new TextBlock ()); Assert.IsTrue (tbap.IsContentElement (), "IsContentElement"); Assert.IsTrue (tbap.IsContentElementCore_ (), "IsContentElementCore"); }
public override void GetName () { TextBlock textblock = new TextBlock (); TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker (textblock); Assert.AreEqual (String.Empty, tbap.GetName (), "GetName"); Assert.AreEqual (String.Empty, tbap.GetNameCore_ (), "GetNameCore"); string textBlockname = "Textblock name!"; textblock.Text = textBlockname; Assert.AreEqual (textBlockname, tbap.GetName (), "GetName #1"); Assert.AreEqual (textBlockname, tbap.GetNameCore_ (), "GetNameCore #1"); textblock.Text = null; Assert.AreEqual (string.Empty, tbap.GetName (), "GetName #2"); Assert.AreEqual (string.Empty, tbap.GetNameCore_ (), "GetNameCore #2"); }
public override void GetAutomationControlType () { TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker (new TextBlock ()); Assert.AreEqual (AutomationControlType.Text, tbap.GetAutomationControlType (), "GetAutomationControlType"); Assert.AreEqual (AutomationControlType.Text, tbap.GetAutomationControlTypeCore_ (), "GetAutomationControlTypeCore"); }