public static void BrowseForward(int from, int expectedTo)
        {
            var flipView = new FlipView();

            flipView.Items.Add(new DummyItem(0));
            flipView.Items.Add(new DummyItem(1));
            flipView.Items.Add(new DummyItem(2));
            flipView.SetCurrentValue(System.Windows.Controls.Primitives.Selector.SelectedIndexProperty, from);
            NavigationCommands.BrowseForward.Execute(null, flipView);
            Assert.AreSame(flipView.Items[expectedTo], flipView.SelectedItem);
        }
        public static void CanExecutePreviousAndNext(int index, bool canPrevious, bool canNext)
        {
            var flipView = new FlipView();

            flipView.Items.Add(new DummyItem(0));
            flipView.Items.Add(new DummyItem(1));
            flipView.Items.Add(new DummyItem(2));
            flipView.SetCurrentValue(System.Windows.Controls.Primitives.Selector.SelectedIndexProperty, index);
            Assert.AreEqual(canPrevious, NavigationCommands.BrowseBack.CanExecute(null, flipView));
            Assert.AreEqual(canNext, NavigationCommands.BrowseForward.CanExecute(null, flipView));
        }