Encapsulates methods to change the quality component of the image.
Inheritance: IGraphicsProcessor
Ejemplo n.º 1
0
            public void ThenShouldThrowImageProcessingExceptionGivenInvalidDynamicParameter()
            {
                // Arrange
                var quality = new Quality();

                // Act // Assert
                Assert.Throws<ImageProcessingException>(() => quality.ProcessImage(new ImageFactory()));
            }
Ejemplo n.º 2
0
            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);
        }