public void ShouldBeInvalidIfNotBase64()
            {
                // Arrange
                const string value     = "Tes";
                var          validator = new Base64Validator();

                // Act
                validator.Validate(value);

                // Assert
                validator.IsInvalid.ShouldBe(true);
            }
            public void ShouldBeValidIfDefinedBase64String()
            {
                // Arrange
                const string value     = "VGVzdA==";
                var          validator = new Base64Validator();

                // Act
                validator.Validate(value);

                // Assert
                validator.IsInvalid.ShouldBe(false);
            }
            public void ShouldBeDirtyOnceValidated()
            {
                // Arrange
                const string value     = "Test";
                var          validator = new Base64Validator();

                // Act
                validator.Validate(value);

                // Assert
                validator.IsDirty.ShouldBe(true);
            }
            public void ShouldBeValidIfConvertedToBase64String()
            {
                // Arrange
                const string decodedValue = "Test";
                string       value        = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(decodedValue));
                var          validator    = new Base64Validator();

                // Act
                validator.Validate(value);

                // Assert
                validator.IsInvalid.ShouldBe(false);
            }