We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd13831 commit 247bdd5Copy full SHA for 247bdd5
src/Moq/MockException.cs
@@ -248,7 +248,7 @@ protected MockException(
248
System.Runtime.Serialization.StreamingContext context)
249
: base(info, context)
250
{
251
- this.reasons = (MockExceptionReasons)info.GetValue(nameof(this.reasons), typeof(MockExceptionReasons));
+ this.reasons = (MockExceptionReasons)info.GetValue(nameof(this.reasons), typeof(MockExceptionReasons))!;
252
}
253
254
/// <summary>
0 commit comments