public void TestApplyPreferencesNoIsaapNoCookie()
        {
            var result = groups.ApplyPreferences(new string[] { }, new Dictionary <string, string>());

            Assert.NotNull(result);
            Assert.Equal(SelectedCode(result, "AmericanSignLanguage"), "TDS_ASL0");
            Assert.Equal(SelectedCode(result, "ColorContrast"), "TDS_CC0");
            Assert.Equal(SelectedCode(result, "ClosedCaptioning"), "TDS_ClosedCap0");
            Assert.Equal(SelectedCode(result, "Language"), "ENU");
        }
        public void TestApplyPreferencesCookieOptionDisabled()
        {
            var result = groupsDisabledOptions.ApplyPreferences(new string[] { }, badCookie);

            Assert.NotNull(result);

            //applying cookie to a group that has the option disabled.
            Assert.Equal(SelectedCode(result, "AmericanSignLanguage"), "TDS_ASL0");
            Assert.Equal(SelectedCode(result, "ClosedCaptioning"), "TDS_ClosedCap0");
            Assert.Equal(SelectedCode(result, "Language"), "ENU");
            Assert.Equal(result[0].AccessibilityResources[0].Disabled, true);//Assert option is still disabled
            Assert.Equal(result[0].AccessibilityResources[1].Disabled, true);
            Assert.Equal(result[0].AccessibilityResources[2].Disabled, false);
        }