public void HookChildControlsTest() { using TestControlDesigner controlDesigner = new TestControlDesigner(); using Button button = new Button(); controlDesigner.Initialize(button); controlDesigner.HookChildControlsMethod(new Control()); }
public void HookChildControlsTest() { TestControlDesigner controlDesigner = new TestControlDesigner(); Assert.NotNull(controlDesigner); controlDesigner.Initialize(new Button()); try { controlDesigner.HookChildControlsMethod(new Control()); } catch (Exception ex) { Assert.True(false, "Expected no exception, but got: " + ex.Message); } }