Пример #1
0
        public override void IsContentElement()
        {
            TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker(new TextBlock());

            Assert.IsTrue(tbap.IsContentElement(), "IsContentElement");
            Assert.IsTrue(tbap.IsContentElementCore_(), "IsContentElementCore");
        }
Пример #2
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");
        }
Пример #3
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");
        }
Пример #4
0
		public override void IsContentElement ()
		{
			TextBlockAutomationPeerPoker tbap = new TextBlockAutomationPeerPoker (new TextBlock ());
			Assert.IsTrue (tbap.IsContentElement (), "IsContentElement");
			Assert.IsTrue (tbap.IsContentElementCore_ (), "IsContentElementCore");
		}
Пример #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");
		}
Пример #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");
		}