-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for diagnostics SPCH1008 and SPCH1009
- Loading branch information
Showing
5 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...napshots/G.CellValueConverter_ClassPropertyWithConverterAndCellValueTruncate.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: SPCH1008, | ||
Title: Attribute combination not supported, | ||
Severity: Error, | ||
WarningLevel: 0, | ||
Location: : (7,19)-(7,27), | ||
MessageFormat: Having both the {0} and the {1} attributes on a property is not supported, | ||
Message: Having both the CellValueConverter and the CellValueTruncate attributes on a property is not supported, | ||
Category: SpreadCheetah.SourceGenerator | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
...shotTest/Snapshots/G.CellValueConverter_ClassWithoutParameterlessConstructor.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: SPCH1009, | ||
Title: Type must have a public parameterless constructor, | ||
Severity: Error, | ||
WarningLevel: 0, | ||
Location: : (5,5)-(5,52), | ||
MessageFormat: Type '{0}' must have a public parameterless constructor, | ||
Message: Type 'MyNamespace.FixedValueConverter' must have a public parameterless constructor, | ||
Category: SpreadCheetah.SourceGenerator | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters