public void ShouldDecodeJsonMessageSuccessfully() { var obj = (Response)ProtobufSerializer.Decode(_respondeMessageEncodeJson, typeof(Response), PitayaSerializer.Json); Assert.AreEqual(typeof(Response), obj.GetType()); Assert.AreEqual(obj, _responseStub); }
public void ShouldDecodeProtobufMessageSuccessfully() { var obj = (Response)ProtobufSerializer.Decode(_responseEncoded, typeof(Response), PitayaSerializer.Protobuf); Assert.True(typeof(Response) == obj.GetType()); Assert.True(IsResponseEquals(obj, _responseStub)); }