Beispiel #1
0
 public void TestEnumerateColumn()
 {
     TestEnumeration(Rect2.Column(4, 5, 3),
                     new Vec2(4, 5),
                     new Vec2(4, 6),
                     new Vec2(4, 7));
 }
Beispiel #2
0
        public void TestColumnVecPos()
        {
            Rect2 r = Rect2.Column(new Vec2(-2, 3), 4);

            Assert.AreEqual(-2, r.Position.x);
            Assert.AreEqual(3, r.Position.y);
            Assert.AreEqual(1, r.Size.x);
            Assert.AreEqual(4, r.Size.y);
        }
Beispiel #3
0
        public void TestColumn()
        {
            Rect2 r = Rect2.Column(4);

            Assert.AreEqual(0, r.Position.x);
            Assert.AreEqual(0, r.Position.y);
            Assert.AreEqual(1, r.Size.x);
            Assert.AreEqual(4, r.Size.y);
        }