public void ThenShouldThrowImageProcessingExceptionGivenInvalidDynamicParameter() { // Arrange var quality = new Quality(); // Act // Assert Assert.Throws<ImageProcessingException>(() => quality.ProcessImage(new ImageFactory())); }
public void ThenShouldInitializeSettings() { // Arrange var quality = new Quality(); // Act // Assert Assert.That(quality.Settings, Is.Not.Null); }
public void TestQualityRegex() { const string Querystring = "quality=56"; const int Expected = 56; Quality quality = new Quality(); quality.MatchRegexIndex(Querystring); int actual = quality.DynamicParameter; Assert.AreEqual(Expected, actual); }