static TestApplicationJumpListService CreateTestService(TestNativeJumpList nativeJumpList, out TestJumpActionsManager jumpActionsManager)
        {
            jumpActionsManager = new TestJumpActionsManager();
            var applicationJumpListService = new TestApplicationJumpListService(nativeJumpList, jumpActionsManager);

            applicationJumpListService.Items.Clear();
            return(applicationJumpListService);
        }
        public void SeveralJumpList()
        {
            IApplicationJumpListService jumpList_2 = new TestApplicationJumpListService(nativeJumpList, jumpActionsManager);

            Assert.IsFalse(jumpList_2.ShowFrequentCategory);
            Assert.IsFalse(jumpList_2.ShowRecentCategory);
            applicationJumpListService.ShowFrequentCategory = true;
            applicationJumpListService.ShowRecentCategory   = true;
            applicationJumpListService.Items.Add("1");
            applicationJumpListService.Apply();
            AssertHelper.AssertEnumerablesAreEqual(new ApplicationJumpItemInfo[] { new ApplicationJumpPathInfo()
                                                                                   {
                                                                                       Path = "1"
                                                                                   } }, jumpList_2.Items, true);
            Assert.IsTrue(jumpList_2.ShowFrequentCategory);
            Assert.IsTrue(jumpList_2.ShowRecentCategory);
        }
 public void SeveralJumpList() {
     IApplicationJumpListService jumpList_2 = new TestApplicationJumpListService(nativeJumpList, jumpActionsManager);
     Assert.IsFalse(jumpList_2.ShowFrequentCategory);
     Assert.IsFalse(jumpList_2.ShowRecentCategory);
     applicationJumpListService.ShowFrequentCategory = true;
     applicationJumpListService.ShowRecentCategory = true;
     applicationJumpListService.Items.Add("1");
     applicationJumpListService.Apply();
     AssertHelper.AssertEnumerablesAreEqual(new ApplicationJumpItemInfo[] { new ApplicationJumpPathInfo() { Path = "1" } }, jumpList_2.Items, true);
     Assert.IsTrue(jumpList_2.ShowFrequentCategory);
     Assert.IsTrue(jumpList_2.ShowRecentCategory);
 }