<commit_before>﻿using System;
using Jwc.Experiment;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.Kernel;

namespace Jwc.Experiment
{
    /// <summary>
    /// <see cref="ISpecimenContext"/>를 <see cref="ITestFixture"/>에 맞춘다.
    /// auto data기능을 AutoFixture library로부터 채용하게 된다.
    /// </summary>
    public class TestFixtureAdapter : ITestFixture
    {
        private readonly ISpecimenContext _specimenContext;

        /// <summary>
        /// Initializes a new instance of the <see cref="TestFixtureAdapter"/> class.
        /// </summary>
        public TestFixtureAdapter() : this(
            new SpecimenContext(new Fixture()))
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="TestFixtureAdapter"/> class.
        /// </summary>
        /// <param name="specimenContext">The specimen context.</param>
        /// <exception cref="System.ArgumentNullException">specimenContext</exception>
        public TestFixtureAdapter(ISpecimenContext specimenContext)
        {
            if (specimenContext == null)
            {
                throw new ArgumentNullException("specimenContext");<commit_msg>refactor: intialize field in default constructor<commit_after>﻿using System;
using Jwc.Experiment;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.Kernel;

namespace Jwc.Experiment
{
    /// <summary>
    /// <see cref="ISpecimenContext"/>를 <see cref="ITestFixture"/>에 맞춘다.
    /// auto data기능을 AutoFixture library로부터 채용하게 된다.
    /// </summary>
    public class TestFixtureAdapter : ITestFixture
    {
        private readonly ISpecimenContext _specimenContext;

        /// <summary>
        /// Initializes a new instance of the <see cref="TestFixtureAdapter"/> class.
        /// </summary>
        public TestFixtureAdapter()
        {
            _specimenContext = new SpecimenContext(new Fixture());
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="TestFixtureAdapter"/> class.
        /// </summary>
        /// <param name="specimenContext">The specimen context.</param>
        /// <exception cref="System.ArgumentNullException">specimenContext</exception>
        public TestFixtureAdapter(ISpecimenContext specimenContext)
        {
            if (specimenContext == null)
            {
                throw new ArgumentNullException("specimenContext");
{'fraction_non_alphanumeric': 0.11625947767481044, 'fraction_numerical': 0.0, 'mean_word_length': 2.45203488372093, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '1783033', 'n_tokens_mistral': 665, 'n_tokens_neox': 668, 'n_words': 152}