Пример #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);
        }