You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/site/docs/extensions/bunit-generators.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,3 +82,11 @@ internal partial class ThirdPartyStub { }
82
82
```
83
83
84
84
Current limitations of this approach is that he stubbed type is not allowed to be nested inside the test class.
85
+
86
+
## Reported Diagnostics
87
+
The generators will report a range of diagnostics to help understanding what issue is present. The following table shows the diagnostics that are reported.
88
+
89
+
| Diagnostic ID | Error | Severity | Description |
| BUNIT0001 | Stubbing nested classes ({0}) is not supported. | Warning | Types annotated with `ComponentStub` can not be nested inside another class. |
92
+
| BUNIT0002 | Class ({0}) is not partial. | Warning | Types annotated with `ComponentStub` must be partial. |
0 commit comments