Skip to content

Add a generator-diagnostics test harness #6

Description

@WailedParsley36

The SCGDB### diagnostics are only exercised indirectly. Add a snapshot/verifier harness (Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing or similar) that runs the generator over small inputs and asserts the exact diagnostics produced — and, for the 0.3.3 profile work, that [Encrypted(Profile = "x")] emits the 4-argument FieldCrypto call (and GetColumns() sets EncryptionProfile) only for profiled columns, leaving default columns byte-for-byte unchanged. This makes the generator contract testable without a database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    source-generatorSource generator and T4 templatestestingTests and test harnesses

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions