public void KeyboardUpDownWithShiftArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                Mouse.ExpandCollapseClick(sst.Element1);

                Mouse.Click(sst.Element11);
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 has not focus after down");
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");

                Mouse.ShiftClick(sst.Element12);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after second down");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 not selected after second down");
                Assert.IsTrue(sst.Element12.IsFocused, "Element12 has not focus after second down");

                Mouse.Click(sst.Element13);
                Assert.IsFalse(sst.Element11.IsSelected, "Element11 selected after second down");
                Assert.IsFalse(sst.Element12.IsSelected, "Element12 selected after second down");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after down");
                Assert.IsTrue(sst.Element13.IsFocused, "Element13 has not focus after down");

                Mouse.ShiftClick(sst.Element11);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 selected after up");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 selected after up");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after up");
                Assert.IsTrue(sst.Element11.IsFocused, "Element13 has not focus after up");


                Mouse.ShiftClick(sst.Element14);
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after fourth down");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after fourth down");
                Assert.IsTrue(sst.Element14.IsFocused, "Element14 has not focus after fourth down");
            }
        }
        public void KeyboardLeftRightUpDownArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                sst.Element1.Select();
                Keyboard.Right();
                Assert.IsTrue(sst.Element1.IsExpanded, "Element1 not expanded");

                Keyboard.Down();
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 has not focus after down");
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");

                Keyboard.Down();
                Assert.IsTrue(sst.Element12.IsFocused, "Element12 has not focus after down");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 not selected after down");

                Keyboard.Down();
                Assert.IsTrue(sst.Element13.IsFocused, "Element13 has not focus after down");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after down");

                Keyboard.Right();
                Assert.IsTrue(sst.Element13.IsExpanded, "Element13 not expanded");

                Keyboard.Left();
                Assert.IsFalse(sst.Element13.IsExpanded, "Element13 expanded");

                Keyboard.Up();
                Assert.IsTrue(sst.Element12.IsFocused, "Element12 has not focus after Up");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 not selected after Up");
            }
        }
Ejemplo n.º 3
0
        public void KeyboardUpDownWithShiftArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                Mouse.ExpandCollapseClick(sst.Element1);

                Mouse.Click(sst.Element11);
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 has not focus after down");
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");

                Mouse.ShiftClick(sst.Element12);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after second down");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 not selected after second down");
                Assert.IsTrue(sst.Element12.IsFocused, "Element12 has not focus after second down");

                Mouse.Click(sst.Element13);
                Assert.IsFalse(sst.Element11.IsSelected, "Element11 selected after second down");
                Assert.IsFalse(sst.Element12.IsSelected, "Element12 selected after second down");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after down");
                Assert.IsTrue(sst.Element13.IsFocused, "Element13 has not focus after down");

                Mouse.ShiftClick(sst.Element11);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 selected after up");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 selected after up");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after up");
                Assert.IsTrue(sst.Element11.IsFocused, "Element13 has not focus after up");


                Mouse.ShiftClick(sst.Element14);
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after fourth down");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after fourth down");
                Assert.IsTrue(sst.Element14.IsFocused, "Element14 has not focus after fourth down");
            }
        }
Ejemplo n.º 4
0
        public void KeyboardLeftRightUpDownArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                sst.Element1.Select();
                Keyboard.Right();
                Assert.IsTrue(sst.Element1.IsExpanded, "Element1 not expanded");

                Keyboard.Down();
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 has not focus after down");
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");

                Keyboard.Down();
                Assert.IsTrue(sst.Element12.IsFocused, "Element12 has not focus after down");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 not selected after down");

                Keyboard.Down();
                Assert.IsTrue(sst.Element13.IsFocused, "Element13 has not focus after down");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after down");

                Keyboard.Right();
                Assert.IsTrue(sst.Element13.IsExpanded, "Element13 not expanded");

                Keyboard.Left();
                Assert.IsFalse(sst.Element13.IsExpanded, "Element13 expanded");

                Keyboard.Up();
                Assert.IsTrue(sst.Element12.IsFocused, "Element12 has not focus after Up");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 not selected after Up");
            }
        }
        public void KeyboardUpDownWithCtrlArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                sst.Element1.Select();
                Keyboard.Right();
                Keyboard.Down();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 not has focus after down");

                Keyboard.CtrlDown();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrldown");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 not has focus after ctrldown");
                Assert.IsTrue(sst.Element12.IsSelectedPreview, "Element12 not selectedPreview after ctrldown");

                Keyboard.CtrlDown();
                Keyboard.CtrlDown();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrldowndowndown");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 not has focus after ctrldowndowndown");
                Assert.IsTrue(sst.Element14.IsSelectedPreview, "Element12 not selectedPreview after ctrldowndowndown");

                Keyboard.CtrlSpace();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrlspace");
                Assert.IsTrue(sst.Element14.IsFocused, "Element14 not has focus after ctrlspace");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after ctrlspace");
                Assert.IsFalse(sst.Element14.IsSelectedPreview, "Element14 selectedPreview after ctrlspace");

                Keyboard.CtrlDown();
                Keyboard.Space();
                Assert.IsTrue(sst.Element15.IsSelected, "Element15 not selected after space");
                Assert.IsTrue(sst.Element15.IsFocused, "Element15 not has focus after space");
            }
        }
Ejemplo n.º 6
0
        public void KeyboardUpDownWithCtrlArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                sst.Element1.Select();
                Keyboard.Right();
                Keyboard.Down();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 not has focus after down");

                Keyboard.CtrlDown();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrldown");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 not has focus after ctrldown");
                Assert.IsTrue(sst.Element12.IsSelectedPreview, "Element12 not selectedPreview after ctrldown");

                Keyboard.CtrlDown();
                Keyboard.CtrlDown();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrldowndowndown");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 not has focus after ctrldowndowndown");
                Assert.IsTrue(sst.Element14.IsSelectedPreview, "Element12 not selectedPreview after ctrldowndowndown");

                Keyboard.CtrlSpace();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrlspace");
                Assert.IsTrue(sst.Element14.IsFocused, "Element14 not has focus after ctrlspace");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after ctrlspace");
                Assert.IsFalse(sst.Element14.IsSelectedPreview, "Element14 selectedPreview after ctrlspace");

                Keyboard.CtrlDown();
                Keyboard.Space();
                Assert.IsTrue(sst.Element15.IsSelected, "Element15 not selected after space");
                Assert.IsTrue(sst.Element15.IsFocused, "Element15 not has focus after space");
            }
        }
Ejemplo n.º 7
0
 public void SelectElement1()
 {
     using (TreeApplication app = new TreeApplication("SimpleSample"))
     {
         SimpleSampleTree sst = new SimpleSampleTree(app);
         sst.Element1.Select();
         Assert.IsTrue(sst.Element1.IsSelected);
     }
 }
 public void SelectElement1()
 {
     using (TreeApplication app = new TreeApplication("SimpleSample"))
     {
         SimpleSampleTree sst = new SimpleSampleTree(app);
         sst.Element1.Select();
         Assert.IsTrue(sst.Element1.IsSelected);
     }
 }
        public void Expand()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                sst.Element1.Expand();

                Assert.IsTrue(sst.Element1.IsExpanded);
            }
        }
      public void Expand()
      {
          using (TreeApplication app = new TreeApplication("SimpleSample"))
          {
              SimpleSampleTree sst = new SimpleSampleTree(app);
              sst.Element1.Expand();

              Assert.IsTrue(sst.Element1.IsExpanded);
          }
      }
        public void DoubleClick()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                
                Mouse.DoubleClick(sst.Element1);
                Assert.IsTrue(sst.Element1.IsExpanded, "Element1 is not expanded after double click");

                Mouse.DoubleClick(sst.Element13);
                Assert.IsTrue(sst.Element13.IsExpanded, "Element13 is not expanded after double click");
            }
        }
Ejemplo n.º 12
0
        public void DoubleClick()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);

                Mouse.DoubleClick(sst.Element1);
                Assert.IsTrue(sst.Element1.IsExpanded, "Element1 is not expanded after double click");

                Mouse.DoubleClick(sst.Element13);
                Assert.IsTrue(sst.Element13.IsExpanded, "Element13 is not expanded after double click");
            }
        }
        public void KeyboardLeftRightUpDownArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);

                Mouse.Click(sst.Element1);
                Mouse.ExpandCollapseClick(sst.Element1);
                Assert.IsTrue(sst.Element1.IsExpanded, "Element1 not expanded");

                Mouse.Click(sst.Element11);
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 has not focus after down");
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");
            }
        }
Ejemplo n.º 14
0
        public void KeyboardLeftRightUpDownArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);

                Mouse.Click(sst.Element1);
                Mouse.ExpandCollapseClick(sst.Element1);
                Assert.IsTrue(sst.Element1.IsExpanded, "Element1 not expanded");

                Mouse.Click(sst.Element11);
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 has not focus after down");
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");
            }
        }
Ejemplo n.º 15
0
        public void KeyboardUpDownWithShiftArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                sst.Element1.Select();
                Keyboard.Right();
                Keyboard.Down();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 has not focus after down");

                Keyboard.ShiftDown();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after second down");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 not selected after second down");
                Assert.IsTrue(sst.Element12.IsFocused, "Element12 has not focus after second down");

                Keyboard.Down();
                Assert.IsFalse(sst.Element11.IsSelected, "Element11 selected after second down");
                Assert.IsFalse(sst.Element12.IsSelected, "Element12 selected after second down");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after down");
                Assert.IsTrue(sst.Element13.IsFocused, "Element13 has not focus after down");

                Keyboard.ShiftUp();
                Keyboard.ShiftUp();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 selected after up");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 selected after up");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after up");
                Assert.IsTrue(sst.Element11.IsFocused, "Element13 has not focus after up");


                Keyboard.ShiftDown();
                Keyboard.ShiftDown();
                Keyboard.ShiftDown();
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after fourth down");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after fourth down");
                Assert.IsTrue(sst.Element14.IsFocused, "Element14 has not focus after fourth down");
            }
        }
        public void KeyboardUpDownWithShiftArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                sst.Element1.Select();
                Keyboard.Right();
                Keyboard.Down();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 has not focus after down");

                Keyboard.ShiftDown();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after second down");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 not selected after second down");
                Assert.IsTrue(sst.Element12.IsFocused, "Element12 has not focus after second down");

                Keyboard.Down();
                Assert.IsFalse(sst.Element11.IsSelected, "Element11 selected after second down");
                Assert.IsFalse(sst.Element12.IsSelected, "Element12 selected after second down");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after down");
                Assert.IsTrue(sst.Element13.IsFocused, "Element13 has not focus after down");

                Keyboard.ShiftUp();
                Keyboard.ShiftUp();
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 selected after up");
                Assert.IsTrue(sst.Element12.IsSelected, "Element12 selected after up");
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after up");
                Assert.IsTrue(sst.Element11.IsFocused, "Element13 has not focus after up");


                Keyboard.ShiftDown();
                Keyboard.ShiftDown();
                Keyboard.ShiftDown();
                Assert.IsTrue(sst.Element13.IsSelected, "Element13 not selected after fourth down");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after fourth down");
                Assert.IsTrue(sst.Element14.IsFocused, "Element14 has not focus after fourth down");
            }
        }
Ejemplo n.º 17
0
        public void KeyboardUpDownWithCtrlArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                Mouse.ExpandCollapseClick(sst.Element1);
                Mouse.Click(sst.Element11);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 not has focus after down");

                Mouse.CtrlClick(sst.Element14);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrlspace");
                Assert.IsTrue(sst.Element14.IsFocused, "Element14 not has focus after ctrlspace");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after ctrlspace");
                Assert.IsFalse(sst.Element14.IsSelectedPreview, "Element14 selectedPreview after ctrlspace");

                Mouse.CtrlClick(sst.Element15);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrlspace");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after ctrlspace");
                Assert.IsFalse(sst.Element14.IsSelectedPreview, "Element14 selectedPreview after ctrlspace");
                Assert.IsTrue(sst.Element15.IsSelected, "Element15 not selected after space");
                Assert.IsTrue(sst.Element15.IsFocused, "Element15 not has focus after space");
            }
        }
        public void KeyboardUpDownWithCtrlArrow()
        {
            using (TreeApplication app = new TreeApplication("SimpleSample"))
            {
                SimpleSampleTree sst = new SimpleSampleTree(app);
                Mouse.ExpandCollapseClick(sst.Element1);
                Mouse.Click(sst.Element11);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after down");
                Assert.IsTrue(sst.Element11.IsFocused, "Element11 not has focus after down");

                Mouse.CtrlClick(sst.Element14);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrlspace");
                Assert.IsTrue(sst.Element14.IsFocused, "Element14 not has focus after ctrlspace");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after ctrlspace");
                Assert.IsFalse(sst.Element14.IsSelectedPreview, "Element14 selectedPreview after ctrlspace");

                Mouse.CtrlClick(sst.Element15);
                Assert.IsTrue(sst.Element11.IsSelected, "Element11 not selected after ctrlspace");
                Assert.IsTrue(sst.Element14.IsSelected, "Element14 not selected after ctrlspace");
                Assert.IsFalse(sst.Element14.IsSelectedPreview, "Element14 selectedPreview after ctrlspace");
                Assert.IsTrue(sst.Element15.IsSelected, "Element15 not selected after space");
                Assert.IsTrue(sst.Element15.IsFocused, "Element15 not has focus after space");
            }
        }