public void ResizeSmaller()
 {
     PhotoSizeManager sut = new PhotoSizeManager(100, 100);
      Size size = new Size(50, 50);
      Assert.That(sut.Resize(size), Is.EqualTo(size));
 }
 public void ResizeRectangle()
 {
     PhotoSizeManager sut = new PhotoSizeManager(800, 600);
      Size size = new Size(1000, 600);
      Assert.That(sut.Resize(size), Is.EqualTo(new Size(800, 480)));
 }
 public void ResizeNotProportionalExceedingWidth()
 {
     PhotoSizeManager sut = new PhotoSizeManager(100, 100);
      Size size = new Size(200, 150);
      Assert.That(sut.Resize(size), Is.EqualTo(new Size(100, 75)));
 }
 public void ResizeProportional()
 {
     PhotoSizeManager sut = new PhotoSizeManager(100, 100);
      Size size = new Size(200, 200);
      Assert.That(sut.Resize(size), Is.EqualTo(new Size(100, 100)));
 }
 public void ResizeNotProportionalExceedingHeight()
 {
     PhotoSizeManager sut = new PhotoSizeManager(100, 100);
      Size size = new Size(150, 200);
      Assert.That(sut.Resize(size), Is.EqualTo(new Size(75, 100)));
 }