<commit_before>﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace nunit.v3
{
    [TestFixture]
    public class BaseClassTests
    {
        [Test]
        public virtual void TestMethod()
        {
            Assert.Pass(nameof(BaseClassTests));
        }
    }

    [TestFixture]
    public class DerivedClassTests : BaseClassTests
    {
        [Test]
        public override void TestMethod()
        {
            Assert.Pass(nameof(DerivedClassTests));<commit_msg>Testing logging after each test runs.<commit_after>﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace nunit.v3
{
    public class LoggingBase
    {
        [TearDown]
        public void LogResults()
        {
            TestContext.WriteLine($"{TestContext.CurrentContext.Test.Name}: {TestContext.CurrentContext.Result.Outcome}");
        }
    }

    [TestFixture]
    public class DerivedClassTests : LoggingBase
    {
        [SetUp]
        public void SetUp()
        {
            TestContext.WriteLine("SetUp");
        }

        [TearDown]
        public void TearDown()
        {
            TestContext.WriteLine("SetUp");
        }

        [Test]
        public void TestMethod()
        {
            Assert.Pass(nameof(DerivedClassTests));
{'fraction_non_alphanumeric': 0.09460406447091801, 'fraction_numerical': 0.001401541695865452, 'mean_word_length': 2.267734553775744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3713406', 'n_tokens_mistral': 404, 'n_tokens_neox': 401, 'n_words': 82}