public void ImageFormating_Rotate_NullBitmap() { //arrange ImageFormating imageFormating = new ImageFormating(); //act //assert Assert.Throws <NullReferenceException>(() => imageFormating.Rotate(null)); }
public void ImageFormating_Rotate_RotateGivenBitmap2() { //arrange ImageFormating imageFormating = new ImageFormating(); Bitmap image = new Bitmap(1, 300); //act //assert Assert.Equal(image.Size, imageFormating.Rotate(image).Size); }
public void ImageFormating_Rotate_RotateGivenBitmap1() { //arrange ImageFormating imageFormating = new ImageFormating(); Bitmap image = new Bitmap(300, 1); //act //assert Assert.Equal(image.Width, imageFormating.Rotate(image).Height); }
public void ImageFormating_BiggestBlob_NullBitmap() { //arrange Bitmap image = null; ImageFormating imageFormating = new ImageFormating(); //act //assert Assert.Equal(image, imageFormating.BiggestBlob(image)); }
public void ImageFormating_BiggestBlob_OnePixelImage() { //arrange Bitmap image = new Bitmap(1, 1); ImageFormating imageFormating = new ImageFormating(); //act //assert Assert.Equal(image, imageFormating.BiggestBlob(image)); }
public void ImageFormating_BiggestBlob_ImageWithoutBlob() { //arrange Bitmap image = new Bitmap(50, 100); ImageFormating imageFormating = new ImageFormating(); //act //assert Assert.Equal(image, imageFormating.BiggestBlob(image)); }
public void ImageFormating_Rescale_RescaleGivenBitmap() { //arrange Bitmap image = new Bitmap(9, 1); ImageFormating imageFormating = new ImageFormating(); //act //assert Assert.Equal(image, imageFormating.Rescale(image)); }