Encapsulates methods to change the quality component of the image.
Inheritance: IGraphicsProcessor
コード例 #1
0
            public void ThenShouldThrowImageProcessingExceptionGivenInvalidDynamicParameter()
            {
                // Arrange
                var quality = new Quality();

                // Act // Assert
                Assert.Throws<ImageProcessingException>(() => quality.ProcessImage(new ImageFactory()));
            }
コード例 #2
0
            public void ThenShouldInitializeSettings()
            {
                // Arrange
                var quality = new Quality();

                // Act

                // Assert
                Assert.That(quality.Settings, Is.Not.Null);
            }
コード例 #3
0
        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);
        }