public void ScaleToFitTest2()
 {
     var calc = new ImageSizeCalculator(600, 800);
     var imageSize = calc.ScaleToFit(400, 400);
     Assert.AreEqual(300, imageSize.Width);
     Assert.AreEqual(400, imageSize.Height);
     Assert.AreEqual(0, imageSize.XOffset);
     Assert.AreEqual(0, imageSize.YOffset);
 }
        public void ScaleToFitTest2()
        {
            var calc      = new ImageSizeCalculator(600, 800);
            var imageSize = calc.ScaleToFit(400, 400);

            Assert.AreEqual(300, imageSize.Width);
            Assert.AreEqual(400, imageSize.Height);
            Assert.AreEqual(0, imageSize.XOffset);
            Assert.AreEqual(0, imageSize.YOffset);
        }
        public void ScaleToFitTest3()
        {
            var calc      = new ImageSizeCalculator(116, 93);
            var imageSize = calc.ScaleToFit(340, 75);

            Assert.AreEqual(93, imageSize.Width);
            Assert.AreEqual(75, imageSize.Height);
            Assert.AreEqual(0, imageSize.XOffset);
            Assert.AreEqual(0, imageSize.YOffset);
        }
 public void ScaleToFitTest3()
 {
     var calc = new ImageSizeCalculator(116, 93);
     var imageSize = calc.ScaleToFit(340, 75);
     Assert.AreEqual(93, imageSize.Width);
     Assert.AreEqual(75, imageSize.Height);
     Assert.AreEqual(0, imageSize.XOffset);
     Assert.AreEqual(0, imageSize.YOffset);
 }