public void FrameWorkElementExtensions_UnitTest_BringToFrontWhereNullParentElement_DoesNotError()
        {
            //------------Setup for test--------------------------
            var frameworkElement = new FrameworkElement();

            //------------Execute Test---------------------------
            frameworkElement.BringToFront();
            //------------Assert Results-------------------------
        }
        public void FrameWorkElementExtensions_UnitTest_BringToFrontWhereContainsNoElements_DoesNotError()
        {
            //------------Setup for test--------------------------
            var autoLayoutGrid   = new AutoLayoutGrid();
            var frameworkElement = new FrameworkElement();

            autoLayoutGrid.Children.Add(frameworkElement);
            //------------Execute Test---------------------------
            frameworkElement.BringToFront();
            //------------Assert Results-------------------------
        }
        public void FrameWorkElementExtensions_UnitTest_BringToFrontWhereElementHasParents_SetsZIndex()
        {
            //------------Setup for test--------------------------
            var autoLayoutGrid     = new AutoLayoutGrid();
            var frameworkElement   = new FrameworkElement();
            var backElementElement = new FrameworkElement();
            var backGrid           = new AutoLayoutGrid();

            autoLayoutGrid.Children.Add(frameworkElement);
            backGrid.Children.Add(backElementElement);
            autoLayoutGrid.Children.Add(backGrid);
            //------------Execute Test---------------------------
            frameworkElement.BringToFront();
            //------------Assert Results-------------------------
            int zIndex = Panel.GetZIndex(frameworkElement);

            Assert.AreEqual(1, zIndex);
        }