public void CustomBitmapTest() { OptionsPageCustom target = optionsPageCustom; string expectedPathValue = AppDomain.CurrentDomain.BaseDirectory + "SomeBitmap.Bmp"; target.CustomBitmap = expectedPathValue; Assert.AreEqual(expectedPathValue, target.CustomBitmap, "CustomBitmap property value was initialized by unexpected value."); }
public void OptionsPageTest() { OptionsCompositeControl target = compositeControl; OptionsPageCustom expectedValue = new OptionsPageCustom(); target.OptionsPage = expectedValue; Assert.AreEqual(expectedValue, target.OptionsPage, "OptionsPage 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."); }
/// <summary> /// Clean up any resources being used. /// </summary> protected virtual void Dispose(bool disposing) { if (disposing) { if (optionsPageCustom != null) { optionsPageCustom = null; } GC.SuppressFinalize(this); } }
public void OptionsPageCustomTestCleanup() { optionsPageCustom = null; }
public void OptionsPageCustomTestInitialize() { optionsPageCustom = new OptionsPageCustom(); }