<commit_before>using System;
using System.Threading;
using NUnit.Framework;

namespace MongoDB.Driver.Connection
{
    [TestFixture]
    public class TestConnectionPool
    {
        [Test]
        public void TestDefaultPoolSizeIsEmpty()
        {
            using(var pool = new ConnectionPool(string.Empty))
                Assert.AreEqual(0, pool.PoolSize);
        }<commit_msg>Make sure connection factory is cleared before run connection pool tests.<commit_after>using System;
using System.Threading;
using NUnit.Framework;

namespace MongoDB.Driver.Connection
{
    [TestFixture]
    public class TestConnectionPool
    {
        [TestFixtureSetUp]
        public void SetUp()
        {
            ConnectionFactory.Shutdown();
        }

        [Test]
        public void TestDefaultPoolSizeIsEmpty()
        {
            using(var pool = new ConnectionPool(string.Empty))
                Assert.AreEqual(0, pool.PoolSize);
        }
{'fraction_non_alphanumeric': 0.07928118393234672, 'fraction_numerical': 0.0021141649048625794, 'mean_word_length': 2.4187725631768955, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4326530', 'n_tokens_mistral': 252, 'n_tokens_neox': 247, 'n_words': 59}