public TestableTestMethodTestCase(ITestMethod testMethod,
                                   object[] testMethodArguments           = null,
                                   TestMethodDisplay defaultMethodDisplay = TestMethodDisplay.ClassAndMethod,
                                   TestMethodDisplayOptions defaultMethodDisplayOptions = TestMethodDisplayOptions.None)
     : base(defaultMethodDisplay, defaultMethodDisplayOptions, testMethod, testMethodArguments)
 {
 }
Example #2
0
        public static void OverrideDefaultMethodDisplay(TestMethodDisplay methodDisplay, string expectedDisplayName)
        {
            var testMethod = Mocks.TestMethod(typeof(DisplayName), "OverrideDefaultMethodDisplay");

            var testCase = new TestableTestMethodTestCase(testMethod, defaultMethodDisplay: methodDisplay);

            Assert.Equal(expectedDisplayName, testCase.DisplayName);
        }
Example #3
0
 public AllureXunitTestCase(IMessageSink diagnosticMessageSink, TestMethodDisplay testMethodDisplay,
                            TestMethodDisplayOptions defaultMethodDisplayOptions,
                            ITestMethod testMethod, object[] testMethodArguments = null)
     : base(diagnosticMessageSink, testMethodDisplay, defaultMethodDisplayOptions, testMethod,
            testMethodArguments)
 {
     _allureXunitHelper = new AllureXunitHelper(this);
 }
Example #4
0
 public DjvuDataRowTestCase(
     IMessageSink messageSink,
     TestMethodDisplay methodDisplay,
     TestMethodDisplayOptions methodDisplayOptions,
     ITestMethod testMethod,
     int attributeNumber,
     int rowNumber)
     : base(
         methodDisplay,
         methodDisplayOptions,
         testMethod,
         GetTestMethodArguments(testMethod, attributeNumber, rowNumber, messageSink))
 {
     _AttributeNumber = attributeNumber;
     _RowNumber       = rowNumber;
     _MessageSink     = messageSink;
 }
Example #5
0
 public DjvuNamedDataRowTestCase(
     IMessageSink messageSink,
     TestMethodDisplay defaultMethodDisplay,
     TestMethodDisplayOptions methodDisplayOptions,
     ITestMethod testMethod,
     int attributeNumber,
     string rowName)
     : base(
         defaultMethodDisplay,
         methodDisplayOptions,
         testMethod,
         GetTestMethodArguments(testMethod, attributeNumber, rowName, messageSink))
 {
     _AttributeNumber = attributeNumber;
     _RowName         = rowName;
     _MessageSink     = messageSink;
 }
Example #6
0
 public TestableTestMethodTestCase(ITestMethod testMethod, object[] testMethodArguments = null, TestMethodDisplay defaultMethodDisplay = TestMethodDisplay.ClassAndMethod)
     : base(defaultMethodDisplay, testMethod, testMethodArguments)
 {
 }
    private static IEnumerable <object[]> ReplaceUnderscoreAndEscapeSequenceDisplayData(TestMethodDisplay methodDisplay)
    {
        if (methodDisplay == ClassAndMethod)
        {
            yield return(new object[] { NameOf(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A), "FormattedDisplayNameExample.unit tests are awesome! ☺" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_1_eq_1X2E0), "FormattedDisplayNameExample.api version 1 eq 1.0" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_should_be_greater_than_1), "FormattedDisplayNameExample.api version should be greater than 1" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1), "FormattedDisplayNameExample.api version 2 should be gt than 1" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1), "FormattedDisplayNameExample.api version 2 should be ge than 1" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2), "FormattedDisplayNameExample.api version 1 should be lt than 2" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_1_should_be_le_than_2), "FormattedDisplayNameExample.api version 1 should be le than 2" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0), "FormattedDisplayNameExample.api version 1.0 should ne 2.0" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.lt_0_should_be_an_error), "FormattedDisplayNameExample.lt 0 should be an error" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq), "FormattedDisplayNameExample.equals operator overload should be same as eq eq" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method), "FormattedDisplayNameExample.== operator overload should be same as equals method" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed), "FormattedDisplayNameExample.masculine super heroes should be buffed" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed), "FormattedDisplayNameExample.termination date should be updated when employee is axed" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed), "FormattedDisplayNameExample.total amount should be updated when order is taxed" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27), "FormattedDisplayNameExample.'stuffed' should not be ambiguous with 'st■'" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27), "FormattedDisplayNameExample.'maxed out' should not be ambiguous with 'maí out'" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.TestNameShouldRemainUnchanged), "FormattedDisplayNameExample.TestNameShouldRemainUnchanged" });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces), "FormattedDisplayNameExample.Test Name With Spaces" });

            yield return(new object[] { NameOf(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2), "Given a version number.when it equals 1.then it should be less than 2" });

            yield break;
        }

        yield return(new object[] { nameof(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A), "unit tests are awesome! ☺" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_1_eq_1X2E0), "api version 1 eq 1.0" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_should_be_greater_than_1), "api version should be greater than 1" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1), "api version 2 should be gt than 1" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1), "api version 2 should be ge than 1" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2), "api version 1 should be lt than 2" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_1_should_be_le_than_2), "api version 1 should be le than 2" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0), "api version 1.0 should ne 2.0" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.lt_0_should_be_an_error), "lt 0 should be an error" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq), "equals operator overload should be same as eq eq" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method), "== operator overload should be same as equals method" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed), "masculine super heroes should be buffed" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed), "termination date should be updated when employee is axed" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed), "total amount should be updated when order is taxed" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27), "'stuffed' should not be ambiguous with 'st■'" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27), "'maxed out' should not be ambiguous with 'maí out'" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.TestNameShouldRemainUnchanged), "TestNameShouldRemainUnchanged" });

        yield return(new object[] { nameof(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces), "Test Name With Spaces" });

        yield return(new object[] { nameof(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2), "then it should be less than 2" });
    }
    private static IEnumerable <object[]> NoOptionsDisplayData(TestMethodDisplay methodDisplay)
    {
        if (methodDisplay == ClassAndMethod)
        {
            yield return(new object[] { NameOf(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A), NameOf(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_1_eq_1X2E0), NameOf(FormattedDisplayNameExample.api_version_1_eq_1X2E0) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_should_be_greater_than_1), NameOf(FormattedDisplayNameExample.api_version_should_be_greater_than_1) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1), NameOf(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1), NameOf(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2), NameOf(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_1_should_be_le_than_2), NameOf(FormattedDisplayNameExample.api_version_1_should_be_le_than_2) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0), NameOf(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.lt_0_should_be_an_error), NameOf(FormattedDisplayNameExample.lt_0_should_be_an_error) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq), NameOf(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method), NameOf(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed), NameOf(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed), NameOf(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed), NameOf(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27), NameOf(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27), NameOf(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.TestNameShouldRemainUnchanged), NameOf(FormattedDisplayNameExample.TestNameShouldRemainUnchanged) });

            yield return(new object[] { NameOf(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces), NameOf(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces) });

            yield return(new object[] { NameOf(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2), NameOf(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2) });

            yield break;
        }

        yield return(new object[] { nameof(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A), nameof(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_1_eq_1X2E0), nameof(FormattedDisplayNameExample.api_version_1_eq_1X2E0) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_should_be_greater_than_1), nameof(FormattedDisplayNameExample.api_version_should_be_greater_than_1) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1), nameof(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1), nameof(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2), nameof(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_1_should_be_le_than_2), nameof(FormattedDisplayNameExample.api_version_1_should_be_le_than_2) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0), nameof(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.lt_0_should_be_an_error), nameof(FormattedDisplayNameExample.lt_0_should_be_an_error) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq), nameof(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method), nameof(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed), nameof(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed), nameof(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed), nameof(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27), nameof(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27), nameof(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.TestNameShouldRemainUnchanged), nameof(FormattedDisplayNameExample.TestNameShouldRemainUnchanged) });

        yield return(new object[] { nameof(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces), nameof(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces) });

        yield return(new object[] { nameof(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2), nameof(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2) });
    }
Example #9
0
 public SkippedTestCase(IMessageSink diagnosticMessageSink, Xunit.Sdk.TestMethodDisplay defaultMethodDisplay, ITestMethod testMethod)
     : base(diagnosticMessageSink, defaultMethodDisplay, testMethod)
 {
     SkipReason = $"AdventureWorks2014 database does not exist on {BenchmarkConfig.Instance.BenchmarkDatabaseInstance}. Download the AdventureWorks backup from https://msftdbprodsamples.codeplex.com/downloads/get/880661 and restore it to {BenchmarkConfig.Instance.BenchmarkDatabaseInstance} to enable these tests.";
 }
Example #10
0
 public SkippableTheoryTestCase(IMessageSink diagnosticMessageSink, Xunit.Sdk.TestMethodDisplay defaultMethodDisplay, ITestMethod testMethod)
     : base(diagnosticMessageSink, defaultMethodDisplay, testMethod)
 {
 }
    private static IEnumerable<object[]> ReplaceUnderscoreAndEscapeSequenceDisplayData(TestMethodDisplay methodDisplay)
    {
        if (methodDisplay == ClassAndMethod)
        {
            yield return new object[] { NameOf(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A), "FormattedDisplayNameExample.unit tests are awesome! ☺" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_1_eq_1X2E0), "FormattedDisplayNameExample.api version 1 eq 1.0" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_should_be_greater_than_1), "FormattedDisplayNameExample.api version should be greater than 1" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1), "FormattedDisplayNameExample.api version 2 should be gt than 1" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1), "FormattedDisplayNameExample.api version 2 should be ge than 1" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2), "FormattedDisplayNameExample.api version 1 should be lt than 2" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_1_should_be_le_than_2), "FormattedDisplayNameExample.api version 1 should be le than 2" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0), "FormattedDisplayNameExample.api version 1.0 should ne 2.0" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.lt_0_should_be_an_error), "FormattedDisplayNameExample.lt 0 should be an error" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq), "FormattedDisplayNameExample.equals operator overload should be same as eq eq" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method), "FormattedDisplayNameExample.== operator overload should be same as equals method" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed), "FormattedDisplayNameExample.masculine super heroes should be buffed" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed), "FormattedDisplayNameExample.termination date should be updated when employee is axed" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed), "FormattedDisplayNameExample.total amount should be updated when order is taxed" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27), "FormattedDisplayNameExample.'stuffed' should not be ambiguous with 'st■'" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27), "FormattedDisplayNameExample.'maxed out' should not be ambiguous with 'maí out'" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.TestNameShouldRemainUnchanged), "FormattedDisplayNameExample.TestNameShouldRemainUnchanged" };
            yield return new object[] { NameOf(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces), "FormattedDisplayNameExample.Test Name With Spaces" };
            yield return new object[] { NameOf(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2), "Given a version number.when it equals 1.then it should be less than 2" };
            yield break;
        }

        yield return new object[] { nameof(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A), "unit tests are awesome! ☺" };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_1_eq_1X2E0), "api version 1 eq 1.0" };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_should_be_greater_than_1), "api version should be greater than 1" };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1), "api version 2 should be gt than 1" };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1), "api version 2 should be ge than 1" };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2), "api version 1 should be lt than 2" };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_1_should_be_le_than_2), "api version 1 should be le than 2" };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0), "api version 1.0 should ne 2.0" };
        yield return new object[] { nameof(FormattedDisplayNameExample.lt_0_should_be_an_error), "lt 0 should be an error" };
        yield return new object[] { nameof(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq), "equals operator overload should be same as eq eq" };
        yield return new object[] { nameof(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method), "== operator overload should be same as equals method" };
        yield return new object[] { nameof(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed), "masculine super heroes should be buffed" };
        yield return new object[] { nameof(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed), "termination date should be updated when employee is axed" };
        yield return new object[] { nameof(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed), "total amount should be updated when order is taxed" };
        yield return new object[] { nameof(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27), "'stuffed' should not be ambiguous with 'st■'" };
        yield return new object[] { nameof(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27), "'maxed out' should not be ambiguous with 'maí out'" };
        yield return new object[] { nameof(FormattedDisplayNameExample.TestNameShouldRemainUnchanged), "TestNameShouldRemainUnchanged" };
        yield return new object[] { nameof(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces), "Test Name With Spaces" };
        yield return new object[] { nameof(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2), "then it should be less than 2" };
    }
    private static IEnumerable<object[]> NoOptionsDisplayData(TestMethodDisplay methodDisplay)
    {
        if (methodDisplay == ClassAndMethod)
        {
            yield return new object[] { NameOf(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A), NameOf(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_1_eq_1X2E0), NameOf(FormattedDisplayNameExample.api_version_1_eq_1X2E0) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_should_be_greater_than_1), NameOf(FormattedDisplayNameExample.api_version_should_be_greater_than_1) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1), NameOf(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1), NameOf(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2), NameOf(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_1_should_be_le_than_2), NameOf(FormattedDisplayNameExample.api_version_1_should_be_le_than_2) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0), NameOf(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.lt_0_should_be_an_error), NameOf(FormattedDisplayNameExample.lt_0_should_be_an_error) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq), NameOf(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method), NameOf(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed), NameOf(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed), NameOf(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed), NameOf(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27), NameOf(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27), NameOf(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.TestNameShouldRemainUnchanged), NameOf(FormattedDisplayNameExample.TestNameShouldRemainUnchanged) };
            yield return new object[] { NameOf(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces), NameOf(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces) };
            yield return new object[] { NameOf(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2), NameOf(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2) };
            yield break;
        }

        yield return new object[] { nameof(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A), nameof(FormattedDisplayNameExample.unit_tests_are_awesomeX21_U263A) };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_1_eq_1X2E0), nameof(FormattedDisplayNameExample.api_version_1_eq_1X2E0) };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_should_be_greater_than_1), nameof(FormattedDisplayNameExample.api_version_should_be_greater_than_1) };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1), nameof(FormattedDisplayNameExample.api_version_2_should_be_gt_than_1) };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1), nameof(FormattedDisplayNameExample.api_version_2_should_be_ge_than_1) };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2), nameof(FormattedDisplayNameExample.api_version_1_should_be_lt_than_2) };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_1_should_be_le_than_2), nameof(FormattedDisplayNameExample.api_version_1_should_be_le_than_2) };
        yield return new object[] { nameof(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0), nameof(FormattedDisplayNameExample.api_version_1X2E0_should_ne_2U002E0) };
        yield return new object[] { nameof(FormattedDisplayNameExample.lt_0_should_be_an_error), nameof(FormattedDisplayNameExample.lt_0_should_be_an_error) };
        yield return new object[] { nameof(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq), nameof(FormattedDisplayNameExample.equals_operator_overload_should_be_same_as_eq_eq) };
        yield return new object[] { nameof(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method), nameof(FormattedDisplayNameExample.X3DX3D_operator_overload_should_be_same_as_equals_method) };
        yield return new object[] { nameof(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed), nameof(FormattedDisplayNameExample.masculine_super_heroes_should_be_buffed) };
        yield return new object[] { nameof(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed), nameof(FormattedDisplayNameExample.termination_date_should_be_updated_when_employee_is_axed) };
        yield return new object[] { nameof(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed), nameof(FormattedDisplayNameExample.total_amount_should_be_updated_when_order_is_taxed) };
        yield return new object[] { nameof(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27), nameof(FormattedDisplayNameExample.X27stuffedX27_should_not_be_ambiguous_with_X27stUFFEDX27) };
        yield return new object[] { nameof(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27), nameof(FormattedDisplayNameExample.X27maxed_outX27_should_not_be_ambiguous_with_X27maXED_outX27) };
        yield return new object[] { nameof(FormattedDisplayNameExample.TestNameShouldRemainUnchanged), nameof(FormattedDisplayNameExample.TestNameShouldRemainUnchanged) };
        yield return new object[] { nameof(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces), nameof(FormattedDisplayNameExample.TestX20NameX20WithU0020Spaces) };
        yield return new object[] { nameof(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2), nameof(Given_a_version_number.when_it_equals_1.then_it_should_be_less_than_2) };
    }