public void Encode_ABC_to_BCD_with_key_1() { const string str = "ABC"; const int key = 1; const string expected_str = "BCD"; var actual_str = TestEncoder.Encode(str, key); Assert.AreEqual(expected_str, actual_str); }
public void Current() { byte[] message = _newBlockMessageSerializer.Serialize(_newBlockMessage); Packet packet = new Packet("eth", 7, message); Packet ensnapped = _snappyEncoder.TestEncode(packet); List <object> output = new List <object>(); _splitter.Encode(ensnapped, output); _encoder.Encode((byte[])output[0], _outputBuffer); }