public void DynamicVisibilityControlConstructorTest()
        {
            IWindowsFormsEditorService DialogProvider = null; // TODO: Initialize to an appropriate value
            int LayerHandle = 0;                              // TODO: Initialize to an appropriate value
            DynamicVisibilityControl target = new DynamicVisibilityControl(DialogProvider, LayerHandle);

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
 /// <summary>
 /// Display a drop down when editing instead of the normal control, and allow the user to "grab" a 
 /// new dynamic visibility extent.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="provider"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     _layer = context.Instance as ILayer;
     IWindowsFormsEditorService dialogProvider;
     dialogProvider = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;
     DynamicVisibilityControl dvc = new DynamicVisibilityControl(dialogProvider, _layer);
     dialogProvider.DropDownControl(dvc);
     _layer.Invalidate();
     return dvc.UseDynamicVisibility;
 }
        public void btnGrabExtentsTest()
        {
            IWindowsFormsEditorService DialogProvider = null;                                            // TODO: Initialize to an appropriate value
            int LayerHandle = 0;                                                                         // TODO: Initialize to an appropriate value
            DynamicVisibilityControl target = new DynamicVisibilityControl(DialogProvider, LayerHandle); // TODO: Initialize to an appropriate value
            Button expected = null;                                                                      // TODO: Initialize to an appropriate value
            Button actual;

            target.btnGrabExtents = expected;
            actual = target.btnGrabExtents;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }