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");
        }
Example #4
0
		public override void IsContentElement ()
		{
			TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker (new TextBlock ());
			Assert.IsTrue (tbap.IsContentElement (), "IsContentElement");
			Assert.IsTrue (tbap.IsContentElementCore_ (), "IsContentElementCore");
		}
Example #5
0
		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");
		}
Example #6
0
		public override void GetAutomationControlType ()
		{
			TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker (new TextBlock ());
			Assert.AreEqual (AutomationControlType.Text, tbap.GetAutomationControlType (), "GetAutomationControlType");
			Assert.AreEqual (AutomationControlType.Text, tbap.GetAutomationControlTypeCore_ (), "GetAutomationControlTypeCore");
		}