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

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