Exemplo n.º 1
0
 private static bool Act(string str)
 {
     return(Base64Encoder.IsBase64Encoded(str));
 }
Exemplo n.º 2
0
            public void WhenIsProduct_ThenReturnBase64String()
            {
                var result = Act(CreateProduct());

                Assert.That(Base64Encoder.IsBase64Encoded(result), Is.True);
            }
Exemplo n.º 3
0
 /// <summary>
 /// Checks if the string is potentially base64 encoded.
 /// </summary>
 /// <param name="source">The string to perform this operation on.</param>
 /// <returns>True if string is base64 encoded; otherwise returns false.</returns>
 public static bool IsBase64(this string source)
 {
     return(Base64Encoder.IsBase64Encoded(source));
 }