<commit_before>﻿namespace King.BTrak.Unit.Test
{
    using NUnit.Framework;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    [TestFixture]
    public class SqlDataReaderTests
    {
    }
}<commit_msg>Test Cases<commit_after>﻿namespace King.BTrak.Unit.Test
{
    using King.Data.Sql.Reflection;
    using King.Mapper.Data;
    using NSubstitute;
    using NUnit.Framework;
    using System;

    [TestFixture]
    public class SqlDataReaderTests
    {
        [Test]
        public void Constructor()
        {
            var executor = Substitute.For<IExecutor>();
            var reader = Substitute.For<ISchemaReader>();
            var tableName = Guid.NewGuid().ToString();
            new SqlDataReader(executor, reader, tableName);
        }

        [Test]
        [ExpectedException(typeof(ArgumentNullException))]
        public void ConstructorReaderNull()
        {
            var executor = Substitute.For<IExecutor>();
            var tableName = Guid.NewGuid().ToString();
            new SqlDataReader(executor, null, tableName);
        }

        [Test]
        [ExpectedException(typeof(ArgumentNullException))]
        public void ConstructorExecutorNull()
        {
            var reader = Substitute.For<ISchemaReader>();
            var tableName = Guid.NewGuid().ToString();
            new SqlDataReader(null, reader, tableName);
        }

        [Test]
        [ExpectedException(typeof(ArgumentException))]
        public void ConstructorTableNameNull()
        {
            var reader = Substitute.For<ISchemaReader>();
            var executor = Substitute.For<IExecutor>();
            new SqlDataReader(executor, reader, null);
        }
    }
}
{'fraction_non_alphanumeric': 0.10039481105470953, 'fraction_numerical': 0.0, 'mean_word_length': 2.279112754158965, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5439140', 'n_tokens_mistral': 489, 'n_tokens_neox': 473, 'n_words': 97}