public void LayoutEngine_InitLayout_InvalidChild_ThrowsNotSupportedException() { using var control = new FlowLayoutPanel(); LayoutEngine engine = control.LayoutEngine; Assert.Throws <NotSupportedException>(() => engine.InitLayout("child", BoundsSpecified.All)); }
public void LayoutEngine_InitLayout_NullChild_ThrowsArgumentNullException() { using var control = new FlowLayoutPanel(); LayoutEngine engine = control.LayoutEngine; Assert.Throws <ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.All)); }
public void LayoutEngine_InitLayout_ValidChild_Nop() { using var control = new FlowLayoutPanel(); LayoutEngine engine = control.LayoutEngine; engine.InitLayout(control, BoundsSpecified.All); }