Пример #1
0
        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.");
        }
Пример #2
0
        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.");
        }
Пример #3
0
        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.");
        }
Пример #4
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (optionsPageCustom != null)
         {
             optionsPageCustom = null;
         }
         GC.SuppressFinalize(this);
     }
 }
Пример #5
0
 public void OptionsPageCustomTestCleanup()
 {
     optionsPageCustom = null;
 }
Пример #6
0
 public void OptionsPageCustomTestInitialize()
 {
     optionsPageCustom = new OptionsPageCustom();
 }