<commit_before>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SRHelperTests.cs" company="https://github.com/martincostello/sqllocaldb">
//   <NAME> (c) 2012-2015
// </copyright>
// <license>
//   See license.txt in the project root for license information.
// </license>
// <summary>
//   SRHelperTests.cs
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace System.Data.SqlLocalDb
{
    /// <summary>
    /// A class containing unit tests for the <see cref="SRHelper"/> class.
    /// </summary>
    [TestClass]
    public class SRHelperTests
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SRHelperTests"/> class.
        /// </summary>
        public SRHelperTests()
        {
        }

        [TestMethod]
        [Description("Tests Format() if format is null.")]
        [ExpectedException(typeof(ArgumentNullException))]
        public void SRHelper_Format_Throws_If_Format_Is_Null()
        {
            // Arrange
            string format = null;
            object[] args = new object[0];

            // Act and Assert
            throw ErrorAssert.Throws<ArgumentNullException>(
                () => SRHelper.Format(format, args),
                "format");
        }

        [TestMethod]
        [Description("Tests Format() if args is null.")]
        [ExpectedException(typeof(ArgumentNullException))]
        public void SRHelper_Format_ThrowsIfArgsIsNull()
        {
            // Arrange
            string format = string.Empty;
            object[] args = null;

            throw ErrorAssert.Throws<ArgumentNullException>(<commit_msg>Fixed incorrect unit test name.<commit_after>﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SRHelperTests.cs" company="https://github.com/martincostello/sqllocaldb">
//   <NAME> (c) 2012-2015
// </copyright>
// <license>
//   See license.txt in the project root for license information.
// </license>
// <summary>
//   SRHelperTests.cs
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace System.Data.SqlLocalDb
{
    /// <summary>
    /// A class containing unit tests for the <see cref="SRHelper"/> class.
    /// </summary>
    [TestClass]
    public class SRHelperTests
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SRHelperTests"/> class.
        /// </summary>
        public SRHelperTests()
        {
        }

        [TestMethod]
        [Description("Tests Format() if format is null.")]
        [ExpectedException(typeof(ArgumentNullException))]
        public void SRHelper_Format_Throws_If_Format_Is_Null()
        {
            // Arrange
            string format = null;
            object[] args = new object[0];

            // Act and Assert
            throw ErrorAssert.Throws<ArgumentNullException>(
                () => SRHelper.Format(format, args),
                "format");
        }

        [TestMethod]
        [Description("Tests Format() if args is null.")]
        [ExpectedException(typeof(ArgumentNullException))]
        public void SRHelper_Format_Throws_If_Args_Is_Null()
        {
            // Arrange
            string format = string.Empty;
            object[] args = null;

            throw ErrorAssert.Throws<ArgumentNullException>(
{'fraction_non_alphanumeric': 0.22812014500258934, 'fraction_numerical': 0.004660797514241326, 'mean_word_length': 1.5149739583333333, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 35, 'https://': 2, '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': '4140742', 'n_tokens_mistral': 934, 'n_tokens_neox': 910, 'n_words': 219}