public void JsonNullDeserializedIntoNull()
        {
            var sut    = new JsonMessageSerializer(GremlinClient.DefaultMimeType);
            var ofNull = Encoding.UTF8.GetBytes("null");

            Assert.Null(sut.DeserializeMessage <ResponseMessage>(ofNull));
        }
        public void EmptyStringDeserializedIntoNull()
        {
            var sut     = new JsonMessageSerializer(GremlinClient.DefaultMimeType);
            var ofEmpty = Encoding.UTF8.GetBytes("");

            Assert.Null(sut.DeserializeMessage <ResponseMessage>(ofEmpty));
        }
        public void EmptyArrayDeserializedIntoNull()
        {
            var sut = new JsonMessageSerializer(GremlinClient.DefaultMimeType);

            Assert.Null(sut.DeserializeMessage <ResponseMessage>(new byte[0]));
        }
        public void DeserializingNullThrows()
        {
            var sut = new JsonMessageSerializer(GremlinClient.DefaultMimeType);

            Assert.Throws <ArgumentNullException>(() => sut.DeserializeMessage <ResponseMessage>(null));
        }