<commit_before>using FakeItEasy;
using Xunit;

namespace Playground.Calculator.xUnit.Test
{
    public class StandardCalculatorTest
    {
        private readonly ILogger _logger;
        private readonly StandardCalculator _sut;

        public StandardCalculatorTest()
        {
            _logger = A.Fake<ILogger>();
            _sut = new StandardCalculator(_logger);
        }


        [Fact]
        public void AdditionTest()
        {
            // arrange

            // act
            var result = _sut.Add(6, 7);

            // assert
            Assert.Equal(13, result);
            A.CallTo(() => _logger.Log(A<string>._)).MustNotHaveHappened();
        }

        [Fact]
        public void AdditionCannotOverflowTest()
        {
            // arrange

            // act
            var result = _sut.Add(int.MaxValue, 1);

            // assert
            Assert.Equal(int.MinValue, result);
        }


        [Fact]
        public void AdditionWithLogLineTest()
        {
            // arrange

            // act
            var result = _sut.Add(0, 0);

            // assert
            Assert.Equal(0, result);
            A.CallTo(() => _logger.Log(A<string>._)).MustHaveHappened(Repeated.Exactly.Once);
        }

        [Fact]
        public void MultiplyTest()
        {
            // arrange

            // act
            var result = _sut.Multiply(0, 0);

            // assert
            Assert.Equal(42, result);
        }
    }
}<commit_msg>Added test to change coverage results<commit_after>using System;
using FakeItEasy;
using Xunit;

namespace Playground.Calculator.xUnit.Test
{
    public class StandardCalculatorTest
    {
        private readonly ILogger _logger;
        private readonly StandardCalculator _sut;

        public StandardCalculatorTest()
        {
            _logger = A.Fake<ILogger>();
            _sut = new StandardCalculator(_logger);
        }


        [Fact]
        public void AdditionTest()
        {
            // arrange

            // act
            var result = _sut.Add(6, 7);

            // assert
            Assert.Equal(13, result);
            A.CallTo(() => _logger.Log(A<string>._)).MustNotHaveHappened();
        }

        [Fact]
        public void AdditionCannotOverflowTest()
        {
            // arrange

            // act
            var result = _sut.Add(int.MaxValue, 1);

            // assert
            Assert.Equal(int.MinValue, result);
        }


        [Fact]
        public void AdditionWithLogLineTest()
        {
            // arrange

            // act
            var result = _sut.Add(0, 0);

            // assert
            Assert.Equal(0, result);
            A.CallTo(() => _logger.Log(A<string>._)).MustHaveHappened(Repeated.Exactly.Once);
        }

        [Fact]
        public void MultiplyTest()
        {
            // arrange

            // act
            var result = _sut.Multiply(0, 0);

            // assert
            Assert.Equal(42, result);
        }

        [Fact]
        public void ZeroTimesAnythingIsAlwaysZeroTest()
        {
            // arrange
            var randomValue = new Random().Next(1, 1000);

            // act
            var result = _sut.Multiply(0, randomValue);

            // assert
            Assert.Equal(0, result);
        }
    }
}
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.009323308270676692, 'mean_word_length': 1.3113273106323835, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '2403100', 'n_tokens_mistral': 965, 'n_tokens_neox': 886, 'n_words': 185}