private async Task IsDBFieldPropertyAsync(string source, List <bool> expected, string[] code = null)
        {
            Document      document      = CreateDocument(source, externalCode: code);
            SemanticModel semanticModel = await document.GetSemanticModelAsync().ConfigureAwait(false);

            var syntaxRoot = await document.GetSyntaxRootAsync().ConfigureAwait(false);

            List <bool> actual               = new List <bool>(capacity: expected.Capacity);
            var         pxContext            = new PXContext(semanticModel.Compilation, CodeAnalysisSettings.Default);
            var         attributeInformation = new Acuminator.Utilities.Roslyn.PXFieldAttributes.AttributeInformation(pxContext);

            IEnumerable <PropertyDeclarationSyntax> properties = syntaxRoot.DescendantNodes()
                                                                 .OfType <PropertyDeclarationSyntax>()
                                                                 .Where(a => !a.AttributeLists.IsNullOrEmpty());

            foreach (PropertyDeclarationSyntax property in properties)
            {
                IPropertySymbol propertySymbol = semanticModel.GetDeclaredSymbol(property);

                actual.Add((propertySymbol != null)?
                           attributeInformation.ContainsBoundAttributes(propertySymbol.GetAttributes()):
                           false);
            }

            actual.Should().BeEquivalentTo(expected);
        }