File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,8 +25,10 @@ public void GIVEN_ValidJson_WHEN_DeserializingJsonRpcError_THEN_ShouldReturnCorr
2525 error . Should ( ) . NotBeNull ( ) ;
2626 error . Code . Should ( ) . Be ( - 32600 ) ;
2727 error . Message . Should ( ) . Be ( "Invalid Request" ) ;
28+ #if DEBUG
2829 error . ExtensionData . Should ( ) . ContainKey ( "customKey" ) ;
2930 error . ExtensionData [ "customKey" ] . GetString ( ) . Should ( ) . Be ( "customValue" ) ;
31+ #endif
3032 }
3133 }
3234}
Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ public void GIVEN_ValidJson_WHEN_DeserializingJsonRpcResponse_THEN_ShouldReturnC
2626 response . JsonRpc . Should ( ) . Be ( "2.0" ) ;
2727 response . Id . Should ( ) . Be ( "testId" ) ;
2828 response . Error . Should ( ) . NotBeNull ( ) ;
29+ #if DEBUG
2930 response . ExtensionData . Should ( ) . ContainKey ( "customKey" ) ;
3031 response . ExtensionData [ "customKey" ] . GetString ( ) . Should ( ) . Be ( "customValue" ) ;
32+ #endif
3133 }
3234
3335 [ Fact ]
@@ -51,8 +53,10 @@ public void GIVEN_ValidJson_WHEN_DeserializingGenericJsonRpcResponse_THEN_Should
5153 response . JsonRpc . Should ( ) . Be ( "2.0" ) ;
5254 response . Id . Should ( ) . Be ( "testId" ) ;
5355 response . Result . Should ( ) . Be ( "someResult" ) ;
56+ #if DEBUG
5457 response . ExtensionData . Should ( ) . ContainKey ( "anotherKey" ) ;
5558 response . ExtensionData [ "anotherKey" ] . GetString ( ) . Should ( ) . Be ( "anotherValue" ) ;
59+ #endif
5660 }
5761 }
5862}
You can’t perform that action at this time.
0 commit comments