Exemplo n.º 1
0
 public void OnCreateHandleTest()
 {
     using TestControlDesigner controlDesigner = new TestControlDesigner();
     using Button button = new Button();
     controlDesigner.Initialize(button);
     controlDesigner.OnCreateHandleMethod();
 }
Exemplo n.º 2
0
        public void OnCreateHandleTest()
        {
            TestControlDesigner controlDesigner = new TestControlDesigner();

            Assert.NotNull(controlDesigner);
            controlDesigner.Initialize(new Button());
            try
            {
                controlDesigner.OnCreateHandleMethod();
            }
            catch (Exception ex)
            {
                Assert.True(false, "Expected no exception, but got: " + ex.Message);
            }
        }