<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NewRelic.Platform.Sdk.FunctionalTests
{
    [TestClass]
    public class RunnerTest
    {
        [TestMethod]
        public void TestRunnerSetupAndRunSucceeds()
        {
            Runner runner = new Runner();

            runner.Add(new TestAgentFactory());
            runner.Add(new TestAgent("FunctionalTest3", 4));
            runner.Add(new TestAgent("FunctionalTest4", 5));

            runner.SetupAndRunWithLimit(1);

            Assert.AreEqual(4, runner.Agents.Count);
        }

        [TestMethod]
        public void TestRunnerSetupFailsWithNullAgent()
        {
            try
            {
                Runner runner = new Runner();
                Agent agent = null;
                runner.Add(agent);
                Assert.Fail("Runner should raise exception when null agent is passed");
            }
            catch (ArgumentNullException)
            {
                // Expected
            }
        }

        [TestMethod]
        public void TestRunnerSendFailsWithBadLicense()
        {
            try
            {
                Environment.SetEnvironmentVariable(Constants.ConfigKeyLicenseKey, "GarbageLicense");

                Runner runner = new Runner();
                Agent agent = null;
                runner.Add(agent);
                Assert.Fail("Runner should raise exception when license is bad");
            }
            catch (ArgumentNullException)
            {
                // Expected
            }
        }

        [TestMethod]
        public void TestRunnerReportContinuesWithNullAgentName()
        {
            Runner runner = new Runner();
            runner.Add(new TestAgent("", 4));
            runner.SetupAndRunWithLimit(1); // Should not raise an exception
        }

        [TestMethod]
        public void TestRunnerReportContinuesWithNegativeValue()
        {
            Runner runner = new Runner();
            runner.Add(new TestAgent("FunctionalTest", -10));
            runner.SetupAndRunWithLimit(1); // Should not raise an exception
        }
    }
}
<commit_msg>Removing unnecessary test<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NewRelic.Platform.Sdk.FunctionalTests
{
    [TestClass]
    public class RunnerTest
    {
        [TestMethod]
        public void TestRunnerSetupAndRunSucceeds()
        {
            Runner runner = new Runner();

            runner.Add(new TestAgentFactory());
            runner.Add(new TestAgent("FunctionalTest3", 4));
            runner.Add(new TestAgent("FunctionalTest4", 5));

            runner.SetupAndRunWithLimit(1);

            Assert.AreEqual(4, runner.Agents.Count);
        }

        [TestMethod]
        public void TestRunnerSetupFailsWithNullAgent()
        {
            try
            {
                Runner runner = new Runner();
                Agent agent = null;
                runner.Add(agent);
                Assert.Fail("Runner should raise exception when null agent is passed");
            }
            catch (ArgumentNullException)
            {
                // Expected
            }
        }

        [TestMethod]
        public void TestRunnerReportContinuesWithNullAgentName()
        {
            Runner runner = new Runner();
            runner.Add(new TestAgent("", 4));
            runner.SetupAndRunWithLimit(1); // Should not raise an exception
        }

        [TestMethod]
        public void TestRunnerReportContinuesWithNegativeValue()
        {
            Runner runner = new Runner();
            runner.Add(new TestAgent("FunctionalTest", -10));
            runner.SetupAndRunWithLimit(1); // Should not raise an exception
        }
    }
}

{'fraction_non_alphanumeric': 0.08666836604639307, 'fraction_numerical': 0.005607953097119552, 'mean_word_length': 1.732590529247911, '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': '6641189', 'n_tokens_mistral': 1008, 'n_tokens_neox': 957, 'n_words': 216}