<commit_before>﻿using Moq;
using NUnit.Framework;

namespace CodeEditor.Testing
{
	public abstract class MockBasedTest
	{
		[SetUp]
		public void SetUpMockRepository()
		{
			_mocks = new MockRepository(MockBehavior.Strict);
		}

		protected Mock<T> MockFor<T>() where T : class
		{
			return MockFor<T>(MockBehavior.Default);
		}

		protected Mock<T> MockFor<T>(MockBehavior mockBehavior) where T : class
		{
			return _mocks.Create<T>(mockBehavior);
		}

		protected void VerifyAllMocks()
		{
			_mocks.VerifyAll();
		}

		private MockRepository _mocks;
	}<commit_msg>make mocks strict by default<commit_after>using Moq;
using NUnit.Framework;

namespace CodeEditor.Testing
{
	public abstract class MockBasedTest
	{
		[SetUp]
		public void SetUpMockRepository()
		{
			_mocks = new MockRepository(MockBehavior.Strict);
		}

		protected Mock<T> MockFor<T>() where T : class
		{
			return MockFor<T>(MockBehavior.Strict);
		}

		protected Mock<T> MockFor<T>(MockBehavior mockBehavior) where T : class
		{
			return _mocks.Create<T>(mockBehavior);
		}

		protected void VerifyAllMocks()
		{
			_mocks.VerifyAll();
		}

		private MockRepository _mocks;
	}
{'fraction_non_alphanumeric': 0.1049436253252385, 'fraction_numerical': 0.0, 'mean_word_length': 4.221719457013575, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1069219', 'n_tokens_mistral': 436, 'n_tokens_neox': 386, 'n_words': 86}