@@ -110,7 +110,7 @@ public void Process_ShouldThrow_ArgumentNullException()
110110 }
111111
112112 [ Test ]
113- public void Process_ShouldThrow_NullReferenceException_WhenCallbackAndFormIdNullOrEmpty ( )
113+ public void Process_ShouldThrow_InvalidOperationException_WhenCallbackAndFormIdNullOrEmpty ( )
114114 {
115115 // Arrange
116116 var nullCallbackTagHelper = new RecaptchaV3TagHelper ( _settingsMock . Object , _tagHelperComponentManagerMock . Object )
@@ -128,12 +128,12 @@ public void Process_ShouldThrow_NullReferenceException_WhenCallbackAndFormIdNull
128128
129129
130130 // Assert
131- Assert . Throws < NullReferenceException > ( ( ) => nullCallbackTagHelper . Process ( _contextStub , _tagHelperOutputStub ) ) ;
132- Assert . Throws < NullReferenceException > ( ( ) => emptyCallbackTagHelper . Process ( _contextStub , _tagHelperOutputStub ) ) ;
131+ Assert . Throws < InvalidOperationException > ( ( ) => nullCallbackTagHelper . Process ( _contextStub , _tagHelperOutputStub ) ) ;
132+ Assert . Throws < InvalidOperationException > ( ( ) => emptyCallbackTagHelper . Process ( _contextStub , _tagHelperOutputStub ) ) ;
133133 }
134134
135135 [ Test ]
136- public void Process_ShouldThrow_NullReferenceException_WhenActionIsNullOrEmpty ( )
136+ public void Process_ShouldThrow_InvalidOperationException_WhenActionIsNullOrEmpty ( )
137137 {
138138 // Arrange
139139 var nullCallbackTagHelper = new RecaptchaV3TagHelper ( _settingsMock . Object , _tagHelperComponentManagerMock . Object )
@@ -151,8 +151,8 @@ public void Process_ShouldThrow_NullReferenceException_WhenActionIsNullOrEmpty()
151151
152152
153153 // Assert
154- Assert . Throws < NullReferenceException > ( ( ) => nullCallbackTagHelper . Process ( _contextStub , _tagHelperOutputStub ) ) ;
155- Assert . Throws < NullReferenceException > ( ( ) => emptyCallbackTagHelper . Process ( _contextStub , _tagHelperOutputStub ) ) ;
154+ Assert . Throws < InvalidOperationException > ( ( ) => nullCallbackTagHelper . Process ( _contextStub , _tagHelperOutputStub ) ) ;
155+ Assert . Throws < InvalidOperationException > ( ( ) => emptyCallbackTagHelper . Process ( _contextStub , _tagHelperOutputStub ) ) ;
156156 }
157157
158158 [ Test ]
0 commit comments