File tree Expand file tree Collapse file tree
tests/NetEscapades.EnumGenerators.IntegrationTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ dotnet_diagnostic.NEEG005.severity = error
99dotnet_diagnostic.NEEG006.severity = error
1010dotnet_diagnostic.NEEG007.severity = error
1111dotnet_diagnostic.NEEG008.severity = error
12- dotnet_diagnostic.NEEG009.severity = error
12+ dotnet_diagnostic.NEEG009.severity = error
13+ dotnet_diagnostic.NEEG010.severity = error
Original file line number Diff line number Diff line change @@ -121,4 +121,15 @@ public void Neeg009Testing()
121121#endif
122122#pragma warning restore NEEG009
123123 }
124+
125+ #if NET7_0_OR_GREATER
126+ [ Fact ]
127+ public void Neeg010Testing ( )
128+ {
129+ #pragma warning disable NEEG010
130+ _ = Enum . GetValuesAsUnderlyingType ( typeof ( FlagsEnum ) ) ;
131+ _ = Enum . GetValuesAsUnderlyingType < FlagsEnum > ( ) . Length ;
132+ #pragma warning restore NEEG010
133+ }
134+ #endif
124135}
You can’t perform that action at this time.
0 commit comments