public void JsonNetSerializesUriAsString()
		{
			var uriTest = new UriSerializationTest { MyUri = new Uri("http://*****:*****@"{ MyUri: ""http://localhost:9200""}");

			var deserialized = JsonConvert.DeserializeObject<UriSerializationTest>(serialized);
			deserialized.MyUri.AbsoluteUri.Should().Be("http://localhost:9200/");
		}
		public void NestSerializesUriAsString()
		{
			var uriTest = new UriSerializationTest { MyUri = new Uri("http://*****:*****@"{ myUri: ""http://localhost:9200""}");

			var deserialized = _client.Serializer.Deserialize<UriSerializationTest>(new MemoryStream(Encoding.UTF8.GetBytes(serialized)));
			deserialized.MyUri.AbsoluteUri.Should().Be("http://localhost:9200/");
		}
        public void JsonNetSerializesUriAsString()
        {
            var uriTest = new UriSerializationTest {
                MyUri = new Uri("http://*****:*****@"{ MyUri: ""http://localhost:9200""}");

            var deserialized = JsonConvert.DeserializeObject <UriSerializationTest>(serialized);

            deserialized.MyUri.AbsoluteUri.Should().Be("http://localhost:9200/");
        }
        public void NestSerializesUriAsString()
        {
            var uriTest = new UriSerializationTest {
                MyUri = new Uri("http://*****:*****@"{ myUri: ""http://localhost:9200""}");

            var deserialized = _client.Serializer.Deserialize <UriSerializationTest>(new MemoryStream(Encoding.UTF8.GetBytes(serialized)));

            deserialized.MyUri.AbsoluteUri.Should().Be("http://localhost:9200/");
        }