public void TestBarelyFittingRectangle() { SimpleRectanglePacker packer = new SimpleRectanglePacker(128, 128); Point placement = packer.Pack(128, 128); Assert.AreEqual(new Point(0, 0), placement); }
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); } ); }