Repository: dotnet/roslyn
File: src/EditorFeatures/CSharpTest2/Recommendations/WhereKeywordRecommenderTests.cs (C#)

Code before:

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/72821")]
    public Task TestAfterGenericLocalFunction()
        => VerifyKeywordAsync(
            """
            class C
            {
                void M<T>()
                {
                    void Inner<T1>() $$
            """);

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/72821")]
    public Task TestAfterFirstValidConstraintInGenericLocalFunction()
        => VerifyKeywordAsync(
            """
            class C
            {
                void M<T>()
                {
                    void Inner<T1, T2>()
                        where T1 : C
                        $$
            """);

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/ISSUE_NUMBER")]
    public Task TestAfterExtensionWithTypeParameterAndCompleteParameterList()
        => VerifyKeywordAsync(
            """
            public static class C
            {
                extension<T>(T value) $$
            """);

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/ISSUE_NUMBER")]
    public Task TestAfterExtensionWithMultipleTypeParametersAndCompleteParameterList()
        => VerifyKeywordAsync(
            """
            public static class C
            {
                extension<T1, T2>(T1 value1, T2 value2) $$
            """);

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/ISSUE_NUMBER")]
    public Task TestAfterExtensionWithTypeParameterConstraint()
        => VerifyKeywordAsync(
            """
            public static class C
            {
                extension<T>(T value) where T : class $$
            """);

Review comment (suggestion):
@copilot all these ISSUE_NUMBER placeholders should be replaced with `80636`.  The original issue being fixed: https://github.com/dotnet/roslyn/issues/80636

Code after:

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/72821")]
    public Task TestAfterGenericLocalFunction()
        => VerifyKeywordAsync(
            """
            class C
            {
                void M<T>()
                {
                    void Inner<T1>() $$
            """);

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/72821")]
    public Task TestAfterFirstValidConstraintInGenericLocalFunction()
        => VerifyKeywordAsync(
            """
            class C
            {
                void M<T>()
                {
                    void Inner<T1, T2>()
                        where T1 : C
                        $$
            """);

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/80636")]
    public Task TestAfterExtensionWithTypeParameterAndCompleteParameterList()
        => VerifyKeywordAsync(
            """
            public static class C
            {
                extension<T>(T value) $$
            """);

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/80636")]
    public Task TestAfterExtensionWithMultipleTypeParametersAndCompleteParameterList()
        => VerifyKeywordAsync(
            """
            public static class C
            {
                extension<T1, T2>(T1 value1, T2 value2) $$
            """);

    [Fact, WorkItem("https://github.com/dotnet/roslyn/issues/80636")]
    public Task TestAfterExtensionWithTypeParameterConstraint()
        => VerifyKeywordAsync(
            """
            public static class C
            {
                extension<T>(T value) where T : class $$
            """);