<commit_before>﻿using Autofac;
using Autofac.Core.Registration;
using NUnit.Framework;
using SceneJect.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#if MONO
using SceneJect.Autofac;
#endif

namespace SceneJect.Autofac.Tests
{
	[TestFixture]
	public static class AutofacRegisterationStratTests
	{
		[Test]
		public static void Test_AutofacRegisterationStrat_Throws_On_Null_Builder()
		{
			//assert
			Assert.Throws<ArgumentNullException>(() => new AutofacRegisterationStrat(null));
		}

		[Test]
		public static void Test_AutoFacRegisterationStrat_Can_Register_Type()
		{
			//arrange
			AutofacRegisterationStrat register = new AutofacRegisterationStrat(new ContainerBuilder());

			//act
			register.Register<List<int>>(RegistrationType.Default);
			IContainer container = register.Build();
<commit_msg>Remove Conditional Using<commit_after>﻿using Autofac;
using Autofac.Core.Registration;
using NUnit.Framework;
using SceneJect.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SceneJect.Autofac.Tests
{
	[TestFixture]
	public static class AutofacRegisterationStratTests
	{
		[Test]
		public static void Test_AutofacRegisterationStrat_Throws_On_Null_Builder()
		{
			//assert
			Assert.Throws<ArgumentNullException>(() => new AutofacRegisterationStrat(null));
		}

		[Test]
		public static void Test_AutoFacRegisterationStrat_Can_Register_Type()
		{
			//arrange
			AutofacRegisterationStrat register = new AutofacRegisterationStrat(new ContainerBuilder());

			//act
			register.Register<List<int>>(RegistrationType.Default);
			IContainer container = register.Build();

{'fraction_non_alphanumeric': 0.09177592371871275, 'fraction_numerical': 0.0, 'mean_word_length': 5.909465020576132, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '1696341', 'n_tokens_mistral': 575, 'n_tokens_neox': 527, 'n_words': 103}