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); }