public void String_Tests() { var protocol = new StringProtocol(); var pubconfig = protocol.Encode("this is a test"); var props = new BasicProperties(); var decoded = protocol.Decode(pubconfig.Body, string.Empty, string.Empty, props); Assert.AreEqual("this is a test", decoded); pubconfig = protocol.Encode(""); decoded = protocol.Decode(pubconfig.Body, string.Empty, string.Empty, props); Assert.AreEqual("", decoded); }
public void NullString() { var protocol = new StringProtocol(); var pubconfig = protocol.Encode(null); }