public void SomeWellKnownPaddingCases(string sourceHex, string expectedAscii85) { var codec = new Base85Codec(); var source = Base16.Default.Decode(sourceHex); var target = codec.Encode(source); Assert.Equal(expectedAscii85, target); }
public void SingleByteEncodesToTwoCharacters() { var codec = new Base85Codec(); var encoded = codec.Encode(new byte[] { 0 }); Assert.Equal("!!", encoded); }
public void EmptyBufferEncodesAsEmptyString() { var codec = new Base85Codec(); var encoded = codec.Encode(Array.Empty<byte>()); Assert.Equal(string.Empty, encoded); }