public async Task TestInnerDiagnostic()
        {
            await new VerifyCS.Test
            {
                TestCode   = @"
using System;
using System.Reflection;

class C
{
    void S(Type t)
    {
        if (t is { [|Assembly:|] { [|EntryPoint:|] { CallingConvention: CallingConventions.Any } } })
        {

        }
    }
}",
                FixedState =
                {
                    Sources             =
                    {
                        @"
using System;
using System.Reflection;

class C
{
    void S(Type t)
    {
        if (t is { Assembly: { EntryPoint.CallingConvention: CallingConventions.Any } })
        {

        }
    }
}",
                    },
                    ExpectedDiagnostics =
                    {
                        // /0/Test0.cs(9,20): info IDE0170: Simplify property pattern
                        VerifyCS.Diagnostic().WithSpan(9, 20, 9, 29).WithSpan(9, 20, 9, 86).WithSeverity(DiagnosticSeverity.Info),
                    }
                },
                LanguageVersion      = LanguageVersion.CSharp10,
                CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne | CodeFixTestBehaviors.SkipFixAllCheck,
                DiagnosticSelector   = ds => ds[1],
            }.RunAsync();
        }