public void WhenArgIsNull_ThenThrowException() { Assert.Throws <ArgumentNullException>(() => Base64Encoder.ConvertToBase64(null)); }
public void WhenUtf8StringIsNotNull_ThenReturnBased64(string text, string expected) { var result = Base64Encoder.ConvertToBase64(text); Assert.That(result, Is.EqualTo(expected)); }