Ejemplo n.º 1
0
        public void ShouldDecodeJsonMessageSuccessfully()
        {
            var obj = (Response)ProtobufSerializer.Decode(_respondeMessageEncodeJson, typeof(Response), PitayaSerializer.Json);

            Assert.AreEqual(typeof(Response), obj.GetType());
            Assert.AreEqual(obj, _responseStub);
        }
Ejemplo n.º 2
0
        public void ShouldDecodeProtobufMessageSuccessfully()
        {
            var obj = (Response)ProtobufSerializer.Decode(_responseEncoded, typeof(Response), PitayaSerializer.Protobuf);

            Assert.True(typeof(Response) == obj.GetType());
            Assert.True(IsResponseEquals(obj, _responseStub));
        }