예제 #1
0
        public void LayoutEngine_Layout_NullContainer_ThrowsNullReferenceException()
        {
            var engine = new SubLayoutEngine();

            Assert.Throws <NullReferenceException>(() => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty")));
        }
예제 #2
0
        public void LayoutEngine_Layout_ValidContainer_ReturnsFalse()
        {
            var engine = new SubLayoutEngine();

            Assert.False(engine.Layout(new ScrollableControl(), new LayoutEventArgs(new Component(), "affectedProperty")));
        }
예제 #3
0
        public void LayoutEngine_Layout_InvalidContainer_Nop()
        {
            var engine = new SubLayoutEngine();

            engine.Layout("container", new LayoutEventArgs(new Component(), "affectedProperty"));
        }
예제 #4
0
        public void LayoutEngine_InitLayout_InvalidChild_Nop()
        {
            var engine = new SubLayoutEngine();

            engine.InitLayout("child", BoundsSpecified.All);
        }
예제 #5
0
        public void LayoutEngine_InitLayout_NullChild_ThrowsNullReferenceException()
        {
            var engine = new SubLayoutEngine();

            Assert.Throws <NullReferenceException>(() => engine.InitLayout(null, BoundsSpecified.All));
        }
예제 #6
0
        public void LayoutEngine_InitLayout_ValidChild_Nop()
        {
            var engine = new SubLayoutEngine();

            engine.InitLayout(new ScrollableControl(), BoundsSpecified.All);
        }
예제 #7
0
        public void LayoutEngine_Layout_NullContainer_ThrowsArgumentNullException()
        {
            var engine = new SubLayoutEngine();

            Assert.Throws <ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty")));
        }
예제 #8
0
        public void LayoutEngine_Layout_InvalidContainer_Nop()
        {
            var engine = new SubLayoutEngine();

            Assert.Throws <NotSupportedException>(() => engine.Layout("container", new LayoutEventArgs(new Component(), "affectedProperty")));
        }
예제 #9
0
        public void LayoutEngine_InitLayout_NullChild_ThrowsArgumentNullException()
        {
            var engine = new SubLayoutEngine();

            Assert.Throws <ArgumentNullException>("child", () => engine.InitLayout(null, BoundsSpecified.All));
        }
예제 #10
0
        public void LayoutEngine_InitLayout_InvalidChild_ThrowsNotSupportedException()
        {
            var engine = new SubLayoutEngine();

            Assert.Throws <NotSupportedException>(() => engine.InitLayout("child", BoundsSpecified.All));
        }