<commit_before>﻿using NUnit.Framework;

namespace Shouldly.Tests
{
    [TestFixture]
    public class ShouldBeStringTests
    {
        [Test]
        public void ShouldBeCloseTo_IsPrettyLoose()
        {
            "Fun   with space   and \"quotes\"".ShouldBeCloseTo("Fun with space and 'quotes'");
        }

        [Test]
        public void ShouldStartWith_Should_Return_True_For_Ch_In_Cheese()
        {
            "Cheese".ShouldStartWith("Ch");
        }

        [Test]
        public void ShouldStartWith_Should_Ignore_Case_And_Return_True_For_CH_In_Cheese()
        {
            "Cheese".ShouldStartWith("CH");
        }

        [Test]
        public void ShouldEndWith_Should_Return_True_For_ez_In_Cheez()
        {
            "Cheez".ShouldEndWith("ez");
        }

        [Test]
        public void ShouldEndWith_Should_Ignore_Case_And_Return_True_For_EZ_In_Cheez()
        {
            "Cheez".ShouldEndWith("EZ");
        }

        [Test]
        public void ShouldMatch_Should_Match_Based_On_RegEx_Pattern()
        {
            "Cheese".ShouldMatch(@"C.e{2}s[e]");
        }

        [Test]
        public void ShouldBe_WithoutCaseSpecification()
        {
            "Talk about, pop music".ShouldBe("Talk about, pop music");
        }

        [Test]
        public void ShouldBe_GivenCaseInsensitiveOptionAndStringsDifferingOnlyInCase_ShouldPass()
        {
            "SamplE".ShouldBe("sAMPLe", Case.Insensitive);
        }

        [Test]
        public void ShouldBeEmpty_GivenAnEmptyString_ShouldPass()
        {
            "".ShouldBeEmpty();
        }

        [Test]
        public void ShouldBeEmpty_GivenANullString_ShouldPass()
        {
            string nullstring = null;
            nullstring.ShouldBeEmpty();
        }

        [Test]
        public void ShouldNotBeEmpty_GivenANonEmptyString_ShouldPass()
        {
            "a".ShouldNotBeEmpty();
        }
    }
}<commit_msg>update tests to reflect new NullOrEmpty method names<commit_after>﻿using NUnit.Framework;

namespace Shouldly.Tests
{
    [TestFixture]
    public class ShouldBeStringTests
    {
        [Test]
        public void ShouldBeCloseTo_IsPrettyLoose()
        {
            "Fun   with space   and \"quotes\"".ShouldBeCloseTo("Fun with space and 'quotes'");
        }

        [Test]
        public void ShouldStartWith_Should_Return_True_For_Ch_In_Cheese()
        {
            "Cheese".ShouldStartWith("Ch");
        }

        [Test]
        public void ShouldStartWith_Should_Ignore_Case_And_Return_True_For_CH_In_Cheese()
        {
            "Cheese".ShouldStartWith("CH");
        }

        [Test]
        public void ShouldEndWith_Should_Return_True_For_ez_In_Cheez()
        {
            "Cheez".ShouldEndWith("ez");
        }

        [Test]
        public void ShouldEndWith_Should_Ignore_Case_And_Return_True_For_EZ_In_Cheez()
        {
            "Cheez".ShouldEndWith("EZ");
        }

        [Test]
        public void ShouldMatch_Should_Match_Based_On_RegEx_Pattern()
        {
            "Cheese".ShouldMatch(@"C.e{2}s[e]");
        }

        [Test]
        public void ShouldBe_WithoutCaseSpecification()
        {
            "Talk about, pop music".ShouldBe("Talk about, pop music");
        }

        [Test]
        public void ShouldBe_GivenCaseInsensitiveOptionAndStringsDifferingOnlyInCase_ShouldPass()
        {
            "SamplE".ShouldBe("sAMPLe", Case.Insensitive);
        }

        [Test]
        public void ShouldBeNullOrEmpty_GivenAnEmptyString_ShouldPass()
        {
            "".ShouldBeNullOrEmpty();
        }

        [Test]
        public void ShouldBeNullOrEmpty_GivenANullString_ShouldPass()
        {
            string nullstring = null;
            nullstring.ShouldBeNullOrEmpty();
        }

        [Test]
        public void ShouldNotBeNullOrEmpty_GivenANonEmptyString_ShouldPass()
        {
            "a".ShouldNotBeNullOrEmpty();
        }
    }
}
{'fraction_non_alphanumeric': 0.08987052551408987, 'fraction_numerical': 0.0005077430820005078, 'mean_word_length': 2.0076335877862594, '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': '7308447', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1146, 'n_words': 169}