public void EnabledWhenCustomToolRecognized()
        {
            SD.SettingsDesigner designer           = new SD.SettingsDesigner();
            SubclassedAccessModifierCombobox combo =
                new SubclassedAccessModifierCombobox(
                    designer,
                    designer,
                    new ProjectItemWithCustomToolFake("Recognized generator"),
                    true,
                    null);

            combo.AddCodeGeneratorEntry("Hi, Mom", "Recognized generator");

            Microsoft_VisualStudio_Editors_DesignerFramework_AccessModifierComboboxAccessor accessor =
                new Microsoft_VisualStudio_Editors_DesignerFramework_AccessModifierComboboxAccessor(combo);

            Assert.IsTrue(accessor.ShouldBeEnabled());
        }
        public void EnabledWhenCustomToolRecognizedButNotInDropdownList()
        {
            SD.SettingsDesigner designer           = new SD.SettingsDesigner();
            SubclassedAccessModifierCombobox combo =
                new SubclassedAccessModifierCombobox(
                    designer,
                    designer,
                    new ProjectItemWithCustomToolFake("ResXFileCodeGenerator"),
                    true,
                    null);

            combo.AddCodeGeneratorEntry("VbMyResourcesResXFileCodeGenerator", "Expected generator");
            combo.AddRecognizedCustomToolValue("ResXFileCodeGenerator");

            Microsoft_VisualStudio_Editors_DesignerFramework_AccessModifierComboboxAccessor accessor =
                new Microsoft_VisualStudio_Editors_DesignerFramework_AccessModifierComboboxAccessor(combo);

            Assert.IsTrue(accessor.ShouldBeEnabled());
        }