SnapshotSettingsRoslynExtensions Class
Provides extension methods for SnapshotSettings to enable snapshot testing of Roslyn objects.
public static class SnapshotSettingsRoslynExtensionsMethods
| Name | Description |
|---|---|
| SnapshotSettings.AddRoslyn() | Registers the serializers and converters for Roslyn objects on the SnapshotSettings. A GeneratorDriverRunResult is stored as one source file per generated source, followed by a text file containing the diagnostics reported by the generators. A SyntaxTree, a SyntaxNode, one of the token or trivia types, or a SourceText is stored as a single source file. A Diagnostic, or a collection of them, is stored as a text file with one diagnostic per line. |
SnapshotSettings.AddRoslyn()
SnapshotSettingsRoslynExtensions.csRegisters the serializers and converters for Roslyn objects on the SnapshotSettings.
A GeneratorDriverRunResult is stored as one source file per generated source, followed by a text file containing the diagnostics reported by the generators. A SyntaxTree, a SyntaxNode, one of the token or trivia types, or a SourceText is stored as a single source file. A Diagnostic, or a collection of them, is stored as a text file with one diagnostic per line.
extension(SnapshotSettings snapshotSettings)
{
public void AddRoslyn()
}Parameters
snapshotSettingsSnapshotSettings