public void TestBarelyFittingRectangle() {
      SimpleRectanglePacker packer = new SimpleRectanglePacker(128, 128);

      Point placement = packer.Pack(128, 128);

      Assert.AreEqual(new Point(0, 0), placement);
    }
Beispiel #2
0
        public void TestBarelyFittingRectangle()
        {
            SimpleRectanglePacker packer = new SimpleRectanglePacker(128, 128);

            Point placement = packer.Pack(128, 128);

            Assert.AreEqual(new Point(0, 0), placement);
        }
Beispiel #3
0
        public void TestThrowOnTooLargeRectangle()
        {
            SimpleRectanglePacker packer = new SimpleRectanglePacker(128, 128);

            Assert.Throws <OutOfSpaceException>(
                delegate() { packer.Pack(129, 129); }
                );
        }
 public void TestThrowOnTooLargeRectangle() {
   SimpleRectanglePacker packer = new SimpleRectanglePacker(128, 128);
   Assert.Throws<OutOfSpaceException>(
     delegate() { packer.Pack(129, 129); }
   );
 }