public void RegisterSerializer_CustomSerializerForKnownJanusGraphType_SerializerRegistered()
        {
            var customSerializer = SerializerFake.Register("janusgraph:Geoshape", Geoshape.Point(1, 2));

            var writer = JanusGraphSONWriterBuilder.Build().RegisterSerializer(typeof(Point), customSerializer)
                         .Create();

            Assert.Equal(customSerializer.DeserializationResult, writer.WriteObject(Geoshape.Point(1, 2)));
        }
        public void RegisterSerializer_CustomSerializerForGivenType_SerializerRegistered(object dataToSerialize,
                                                                                         string graphSonTypeToUse)
        {
            var customSerializer = SerializerFake.Register(graphSonTypeToUse, dataToSerialize);

            var writer = JanusGraphSONWriterBuilder.Build().RegisterSerializer(dataToSerialize.GetType(), customSerializer)
                         .Create();

            Assert.Equal(customSerializer.DeserializationResult, writer.WriteObject(dataToSerialize));
        }