public void ShouldReturnNullWhenNullIsGivenToEncode() { var base64Converter = new Base64Converter(); string result = base64Converter.Encode(null); Assert.That(result, Is.EqualTo(null)); }
public void ShouldBase64EncodeARandomString() { var base64Converter = new Base64Converter(); string result = base64Converter.Encode("Hello Base64"); Assert.That(result, Is.EqualTo("SGVsbG8gQmFzZTY0")); }