예제 #1
0
        public void LayoutEngine_InitLayout_InvalidChild_ThrowsNotSupportedException()
        {
            using var control = new FlowLayoutPanel();
            LayoutEngine engine = control.LayoutEngine;

            Assert.Throws <NotSupportedException>(() => engine.InitLayout("child", BoundsSpecified.All));
        }
예제 #2
0
        public void LayoutEngine_InitLayout_NullChild_ThrowsArgumentNullException()
        {
            using var control = new FlowLayoutPanel();
            LayoutEngine engine = control.LayoutEngine;

            Assert.Throws <ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.All));
        }
예제 #3
0
        public void LayoutEngine_InitLayout_ValidChild_Nop()
        {
            using var control = new FlowLayoutPanel();
            LayoutEngine engine = control.LayoutEngine;

            engine.InitLayout(control, BoundsSpecified.All);
        }