public void ThumbnailMaxHeight(ThumbnailSize size) { File file = null; try { file = PostImageFile("testimage.jpg"); Image thumbnail = GetThumbnail(file, maxHeight: size); Assert.That(thumbnail, Is.Not.Null); Assert.That(thumbnail.Height, Is.LessThanOrEqualTo(int.Parse(size.Description()))); } finally { Client.Delete(file); } }
public void ThumbnailMaxHeight(ThumbnailSize size) { File file = null; try { file = PostImageFile("testimage.jpg"); Image thumbnail = GetThumbnail(file, maxHeight: size); Assert.That(thumbnail, Is.Not.Null); Assert.That(thumbnail.Height, Is.LessThanOrEqualTo(int.Parse(size.Description()))); } finally { Client.Delete(file); } }
public void ThumbnailHeightBounded(ThumbnailSize minHeight, ThumbnailSize maxHeight) { File file = null; try { file = PostImageFile("testimage.jpg"); Image thumbnail = GetThumbnail(file, minHeight: minHeight, maxHeight: maxHeight); Assert.That(thumbnail, Is.Not.Null); Assert.That(thumbnail.Height, Is.GreaterThanOrEqualTo(int.Parse(minHeight.Description()))); Assert.That(thumbnail.Height, Is.LessThanOrEqualTo(int.Parse(maxHeight.Description()))); } finally { Client.Delete(file); } }
public void ThumbnailHeightBounded(ThumbnailSize minHeight, ThumbnailSize maxHeight) { File file = null; try { file = PostImageFile("testimage.jpg"); Image thumbnail = GetThumbnail(file, minHeight: minHeight, maxHeight: maxHeight); Assert.That(thumbnail, Is.Not.Null); Assert.That(thumbnail.Height, Is.GreaterThanOrEqualTo(int.Parse(minHeight.Description()))); Assert.That(thumbnail.Height, Is.LessThanOrEqualTo(int.Parse(maxHeight.Description()))); } finally { Client.Delete(file); } }