public void WhenImageIsNotExpectedWidth_ThenAssertFalse(string filePath)
 {
     Assert.Throws <AssertionException>(() => AssertImage.WidthEquals(filePath, 201));
 }
Esempio n. 2
0
 public void WhenImageIsNull_ThenThrowException()
 {
     Assert.Throws <ArgumentNullException>(() => AssertImage.WidthEquals(null as Image, 200));
 }
 public void WhenImageIsExpectedWidth_ThenAssertTrue(string filePath)
 {
     Assert.DoesNotThrow(() => AssertImage.WidthEquals(filePath, 200));
 }