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
The Subject of NumericAssertions is always not-null, but because NullableNumericAssertions inherits from it, the subject was specified as nullable. This causes a lot of warnings (e.g. "Possible 'System.InvalidOperationException'").
I suggest to add a new base class NumericAssertionsBase which also gets the type of the subject and thus the NullableNumericAssertions now has a nullable subject and the subject of NumericAssertions is not-null.
Alternative Concerns
No response
Are you willing help with a pull-request?
Yes, please assign this issue to me.
The text was updated successfully, but these errors were encountered:
Background and motivation
The Subject of
NumericAssertions
is always not-null, but becauseNullableNumericAssertions
inherits from it, the subject was specified as nullable. This causes a lot of warnings (e.g. "Possible 'System.InvalidOperationException'").I suggest to add a new base class
NumericAssertionsBase
which also gets the type of the subject and thus theNullableNumericAssertions
now has a nullable subject and the subject ofNumericAssertions
is not-null.Alternative Concerns
No response
Are you willing help with a pull-request?
Yes, please assign this issue to me.
The text was updated successfully, but these errors were encountered: