<commit_before>﻿using System.Globalization;
using System.IO;
using System.Threading;
using Elasticsearch.Net.Connection;

namespace Nest.Tests.Unit.Converters
{
	public abstract class BaseConverterTest
	{
		protected IElasticClient Client;

		protected BaseConverterTest()
		{
			Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-us");
			IConnectionSettingsValues settings = new ConnectionSettings(UnitTestDefaults.Uri, UnitTestDefaults.DefaultIndex)
				.DisablePing()
				.ExposeRawResponse();

			var connection = new InMemoryConnection(settings);

			Client = new ElasticClient(settings, connection);
		}

		protected T SerializeAndDeserialize<T>(T expected)
		{
			var json = Client.Serializer.Serialize(expected);

			using (var ms = new MemoryStream(json))
			{
				return Client.Serializer.Deserialize<T>(ms);
			}
		}

		protected class ConverterTestObject
		{
			public string Name { get; set; }
			public IFuzziness Fuzziness { get; set; }
		}
	}
}<commit_msg>Updated BaseConverterTest to inherit BaseJonTests<commit_after>﻿using System.IO;

namespace Nest.Tests.Unit.Converters
{
	public abstract class BaseConverterTest : BaseJsonTests
	{
		protected T SerializeAndDeserialize<T>(T expected)
		{
			var json = _client.Serializer.Serialize(expected);

			using (var ms = new MemoryStream(json))
			{
				return _client.Serializer.Deserialize<T>(ms);
			}
		}

		protected class ConverterTestObject
		{
			public string Name { get; set; }
			public IFuzziness Fuzziness { get; set; }
		}
	}
}
{'fraction_non_alphanumeric': 0.09342783505154639, 'fraction_numerical': 0.0, 'mean_word_length': 4.4491228070175435, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3952962', 'n_tokens_mistral': 527, 'n_tokens_neox': 457, 'n_words': 105}