public void Should_decode_pairs_data() { var decodeData = new PairsDecodeData(); foreach (var item in decodeData) { var input = (string)item[1]; var expected = (byte[])item[2]; var decoded = Base65536.Decode(input); decoded.ShouldBeEquivalentTo(expected); } }
public void Should_decode_single_bytes_data(string filename, string input, byte[] expected) { var decoded = Base65536.Decode(input); decoded.ShouldBeEquivalentTo(expected); }
public void Should_encode_single_bytes_data(string filename, byte[] input, string expected) { var encoded = Base65536.Encode(input); encoded.ShouldBeEquivalentTo(expected); }
public void Should_decode_with_ignore_garbage_flag_value_set_to_true(string filename, string input, byte[] expected) { var decoded = Base65536.Decode(input, true); decoded.ShouldBeEquivalentTo(expected); }
public void Should_raise_exception_with_ignore_garbage_flag_value_set_to_false(string filename, string input, byte[] expected) { Assert.Throws <ArgumentException>(() => Base65536.Decode(input)); }
public void Should_raise_exception_on_bad_input(string fileName, string input) { Assert.Throws <ArgumentException>(() => Base65536.Decode(input)); }