Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
        public void LayoutEngine_InitLayout_ValidChild_Nop()
        {
            using var control = new FlowLayoutPanel();
            LayoutEngine engine = control.LayoutEngine;

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