public void OutOfRangeCompression(string testString, string expectedError)
        {
            // arrange
            string            actual           = string.Empty;
            IStringCompressor stringCompressor = new ValidationCompressor(
                (text) => StringValidator.IsValid(text));

            // act
            Assert.ThrowsException <ArgumentOutOfRangeException>(
                () => stringCompressor.Compress(testString), expectedError);
        }
        public void ValidCompression(string testString, string expected)
        {
            // arrange
            string            actual           = string.Empty;
            IStringCompressor stringCompressor = new ValidationCompressor(
                (text) => StringValidator.IsValid(text));

            // act
            actual = stringCompressor.Compress(testString);

            // assert
            Assert.AreEqual(expected, actual);
        }