public void WindowTest() { OptionsPageCustom target = optionsPageCustom; Microsoft_Samples_VisualStudio_IDE_OptionsPage_OptionsPageCustomAccessor accessor = new Microsoft_Samples_VisualStudio_IDE_OptionsPage_OptionsPageCustomAccessor(target); OptionsCompositeControl optionsControl = new OptionsCompositeControl(); optionsControl = accessor.Window as OptionsCompositeControl; Assert.IsNotNull(optionsControl, "Internal Window property was not initialized by expected value."); Assert.AreEqual(optionsControl.OptionsPage, target, "Internal CompositeCOntrol options page property was initialized by unexpected value."); }
public void WindowTest() { OptionsPageCustom target = optionsPageCustom; Microsoft_Samples_VisualStudio_IDE_OptionsPage_OptionsPageCustomAccessor accessor = new Microsoft_Samples_VisualStudio_IDE_OptionsPage_OptionsPageCustomAccessor(target); OptionsCompositeControl optionsControl = new OptionsCompositeControl(); optionsControl = accessor.Window as OptionsCompositeControl; Assert.IsNotNull(optionsControl, "Internal Window property was not initialized by expected value."); Assert.AreEqual(optionsControl.OptionsPage, target, "Internal CompositeCOntrol options page property was initialized by unexpected value."); }