Beispiel #1
0
        public void PictureBox_SaveImage_ShouldThrowExceptionWhenNoPicture()
        {
            var pictureBox = new PictureBoxImageHolder();

            pictureBox.Invoking(x => x.SaveImage("test.png")).Should().Throw <InvalidOperationException>();
        }
Beispiel #2
0
        public void PictureBox_GetImageSize_ShouldThrowExceptionWhenNoPicture()
        {
            var pictureBox = new PictureBoxImageHolder();

            pictureBox.Invoking(x => x.GetImageSize()).Should().Throw <InvalidOperationException>();
        }