Esempio n. 1
0
        public void ImageFormating_Rotate_NullBitmap()
        {
            //arrange
            ImageFormating imageFormating = new ImageFormating();

            //act
            //assert
            Assert.Throws <NullReferenceException>(() => imageFormating.Rotate(null));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }