예제 #1
0
        public void PositionateAbsoluteEdgeWithNoLeft()
        {
            var edge = new OnTopEdge();

            edge.Add(null, null);
            edge.Positionate(WIDTH, HEIGHT);
        }
예제 #2
0
        public void PositionateAbsoluteOnTopEdge()
        {
            var edge = new OnTopEdge();

            edge.Add(this.Left, null);
            edge.Positionate(WIDTH, HEIGHT);

            Assert.IsNotNull(edge.Left.Position);
            Assert.AreEqual(edge.Left, this.Left);
            Assert.AreEqual(edge.Left.Position.Value.Y, 0);
        }