<commit_before>﻿namespace Selenium.WebDriver.Extensions.Tests.Extensions
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.CodeAnalysis;
    using FluentAssertions;
    using OpenQA.Selenium;
    using Selenium.WebDriver.Extensions;
    using Xunit;

    [Trait("Category", "Unit")]
    [ExcludeFromCodeCoverage]
    public class WebDriverExtensionsTests
    {
        private const string _scriptMethod = "myMethod";
        private static readonly string _script = $"{_scriptMethod}();";
        private static readonly Uri _url = new Uri("http://example.com");

        [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
        public static IEnumerable<object[]> InvalidParameters
        {
            get
            {
                var driver = new WebDriverBuilder().Build();
                const string driverParam = "driver";
                const string scriptParam = "script";
                const string versionParam = "version";
                const string uriParam = "uri";

                // ExecuteScript
                yield return new object[]
                {
                    (Action)(() => WebDriverExtensions.ExecuteScript(null, _script)),  driverParam
                };
                yield return new object[]
                {
                    (Action)(() => driver.ExecuteScript(null)), scriptParam
                };
                yield return new object[]
                {
                    (Action)(() => driver.ExecuteScript(string.Empty)), scriptParam
                };

                // ExecuteScript<T>
                yield return new object[]
                {
                    (Action)(() => WebDriverExtensions.ExecuteScript<object>(null, _script)),  driverParam
                };
                yield return new object[]
                {
                    (Action)(() => driver.ExecuteScript<object>(null)), scriptParam
                };
                yield return new object[]
                {
                    (Action)(() => driver.ExecuteScript<object>(string.Empty)), scriptParam
                };

                // LoadJQuery
                yield return new object[]
                {
                    (Action)(() => WebDriverExtensions.LoadJQuery(null, _script)), driverParam
                };
                yield return new object[]
                {
                    (Action)(() => driver.LoadJQuery((string)null)), versionParam
                };
                yield return new object[]
                {<commit_msg>tests updated<commit_after>﻿namespace Selenium.WebDriver.Extensions.Tests.Extensions
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.CodeAnalysis;
    using FluentAssertions;
    using OpenQA.Selenium;
    using Selenium.WebDriver.Extensions;
    using Xunit;

    [Trait("Category", "Unit")]
    [ExcludeFromCodeCoverage]
    public class WebDriverExtensionsTests
    {
        private const string _scriptMethod = "myMethod";
        private static readonly string _script = $"{_scriptMethod}();";
        private static readonly Uri _url = new Uri("http://example.com");

        [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
        public static IEnumerable<object[]> InvalidParameters
        {
            get
            {
                var driver = new WebDriverBuilder().Build();
                const string driverParam = "driver";
                const string scriptParam = "script";
                const string versionParam = "version";
                const string uriParam = "uri";

                // ExecuteScript
                yield return new object[]
                {
                    (Action)(() => WebDriverExtensions.ExecuteScript(null, null)),  driverParam
                };
                yield return new object[]
                {
                    (Action)(() => WebDriverExtensions.ExecuteScript(null, _script)),  driverParam
                };
                yield return new object[]
                {
                    (Action)(() => driver.ExecuteScript(null)), scriptParam
                };
                yield return new object[]
                {
                    (Action)(() => driver.ExecuteScript(string.Empty)), scriptParam
                };

                // LoadJQuery
                yield return new object[]
                {
                    (Action)(() => WebDriverExtensions.LoadJQuery(null, _script)), driverParam
                };
                yield return new object[]
                {
                    (Action)(() => driver.LoadJQuery((string)null)), versionParam
                };
                yield return new object[]
                {
{'fraction_non_alphanumeric': 0.09919966301600674, 'fraction_numerical': 0.0, 'mean_word_length': 1.5207006369426752, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, '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': '20295', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1027, 'n_words': 252}