示例#1
0
 public void WhenArgIsNull_ThenThrowException()
 {
     Assert.Throws <ArgumentNullException>(() => Base64Encoder.ConvertToBase64(null));
 }
示例#2
0
            public void WhenUtf8StringIsNotNull_ThenReturnBased64(string text, string expected)
            {
                var result = Base64Encoder.ConvertToBase64(text);

                Assert.That(result, Is.EqualTo(expected));
            }