@@ -151,7 +151,7 @@ public static void VerifyAll(params Mock[] mocks)
151
151
/// </summary>
152
152
public abstract bool CallBase { get ; set ; }
153
153
154
- internal abstract object [ ] ConstructorArguments { get ; }
154
+ internal abstract object ? [ ] ConstructorArguments { get ; }
155
155
156
156
/// <summary>
157
157
/// Specifies the behavior to use when returning default values for unexpected invocations on loose mocks.
@@ -397,7 +397,7 @@ static void VerifyNoOtherCalls(Mock mock, HashSet<Mock> verifiedMocks)
397
397
// In order for an invocation to be "transitive", its return value has to be a
398
398
// sub-object (inner mock); and that sub-object has to have received at least
399
399
// one call:
400
- var wasTransitiveInvocation = mock . MutableSetups . FindLastInnerMock ( setup => setup . Matches ( unverifiedInvocations [ i ] ) ) is Mock innerMock
400
+ var wasTransitiveInvocation = mock . MutableSetups . FindLastInnerMock ( setup => setup . Matches ( unverifiedInvocations [ i ] ! ) ) is Mock innerMock
401
401
&& innerMock . MutableInvocations . Any ( ) ;
402
402
if ( wasTransitiveInvocation )
403
403
{
@@ -518,7 +518,7 @@ internal static MethodCall SetupGet(Mock mock, LambdaExpression expression, Cond
518
518
return Mock . Setup ( mock , expression , condition ) ;
519
519
}
520
520
521
- internal static MethodCall SetupSet ( Mock mock , LambdaExpression expression , Condition condition )
521
+ internal static MethodCall SetupSet ( Mock mock , LambdaExpression expression , Condition ? condition )
522
522
{
523
523
Guard . NotNull ( expression , nameof ( expression ) ) ;
524
524
Guard . IsAssignmentToPropertyOrIndexer ( expression , nameof ( expression ) ) ;
@@ -583,15 +583,15 @@ internal static bool SetupReturns(Mock mock, LambdaExpression expression, object
583
583
return true ;
584
584
}
585
585
586
- internal static MethodCall SetupAdd ( Mock mock , LambdaExpression expression , Condition condition )
586
+ internal static MethodCall SetupAdd ( Mock mock , LambdaExpression expression , Condition ? condition )
587
587
{
588
588
Guard . NotNull ( expression , nameof ( expression ) ) ;
589
589
Guard . IsEventAdd ( expression , nameof ( expression ) ) ;
590
590
591
591
return Mock . Setup ( mock , expression , condition ) ;
592
592
}
593
593
594
- internal static MethodCall SetupRemove ( Mock mock , LambdaExpression expression , Condition condition )
594
+ internal static MethodCall SetupRemove ( Mock mock , LambdaExpression expression , Condition ? condition )
595
595
{
596
596
Guard . NotNull ( expression , nameof ( expression ) ) ;
597
597
Guard . IsEventRemove ( expression , nameof ( expression ) ) ;
@@ -611,7 +611,7 @@ internal static SequenceSetup SetupSequence(Mock mock, LambdaExpression expressi
611
611
} ) ;
612
612
}
613
613
614
- internal static StubbedPropertySetup SetupProperty ( Mock mock , LambdaExpression expression , object initialValue )
614
+ internal static StubbedPropertySetup SetupProperty ( Mock mock , LambdaExpression expression , object ? initialValue )
615
615
{
616
616
Guard . NotNull ( expression , nameof ( expression ) ) ;
617
617
0 commit comments