@@ -152,7 +152,7 @@ public void DecoderWithKind_IsUsed_For_Key_And_Value()
152152 var calls = new List < ( string ? s , DecodeKind kind ) > ( ) ;
153153 var options = new DecodeOptions
154154 {
155- DecoderWithKind = ( s , enc , kind ) =>
155+ DecoderWithKind = ( s , _ , kind ) =>
156156 {
157157 calls . Add ( ( s , kind ) ) ;
158158 return s ;
@@ -174,7 +174,7 @@ public void DecoderWithKind_NullReturn_IsHonored_NoFallback()
174174 {
175175 var options = new DecodeOptions
176176 {
177- DecoderWithKind = ( s , enc , kind ) => null
177+ DecoderWithKind = ( _ , _ , _ ) => null
178178 } ;
179179
180180 options . DecodeValue ( "foo" , Encoding . UTF8 ) . Should ( ) . BeNull ( ) ;
@@ -186,7 +186,7 @@ public void LegacyDecoder_IsUsed_When_NoKindAwareDecoder_IsProvided()
186186 {
187187 var options = new DecodeOptions
188188 {
189- Decoder = ( s , enc ) => s is null ? null : s . ToUpperInvariant ( )
189+ Decoder = ( s , _ ) => s ? . ToUpperInvariant ( )
190190 } ;
191191
192192 options . DecodeValue ( "abc" , Encoding . UTF8 ) . Should ( ) . Be ( "ABC" ) ;
@@ -199,8 +199,8 @@ public void CopyWith_PreservesAndOverrides_Decoders()
199199 {
200200 var original = new DecodeOptions
201201 {
202- Decoder = ( s , enc ) => s == null ? null : $ "L:{ s } ",
203- DecoderWithKind = ( s , enc , k ) => s == null ? null : $ "K:{ k } :{ s } "
202+ Decoder = ( s , _ ) => s == null ? null : $ "L:{ s } ",
203+ DecoderWithKind = ( s , _ , k ) => s == null ? null : $ "K:{ k } :{ s } "
204204 } ;
205205
206206 // Copy without overrides preserves both decoders
@@ -209,11 +209,11 @@ public void CopyWith_PreservesAndOverrides_Decoders()
209209 copy . DecodeKey ( "k" , Encoding . UTF8 ) . Should ( ) . Be ( "K:Key:k" ) ;
210210
211211 // Override only the legacy decoder; kind-aware remains
212- var copy2 = original . CopyWith ( decoder : ( s , enc ) => s == null ? null : $ "L2:{ s } ") ;
212+ var copy2 = original . CopyWith ( decoder : ( s , _ ) => s == null ? null : $ "L2:{ s } ") ;
213213 copy2 . DecodeValue ( "v" , Encoding . UTF8 ) . Should ( ) . Be ( "K:Value:v" ) ; // still kind-aware takes precedence
214214
215215 // Override kind-aware decoder
216- var copy3 = original . CopyWith ( decoderWithKind : ( s , enc , k ) => s == null ? null : $ "K2:{ k } :{ s } ") ;
216+ var copy3 = original . CopyWith ( decoderWithKind : ( s , _ , k ) => s == null ? null : $ "K2:{ k } :{ s } ") ;
217217 copy3 . DecodeValue ( "v" , Encoding . UTF8 ) . Should ( ) . Be ( "K2:Value:v" ) ;
218218 copy3 . DecodeKey ( "k" , Encoding . UTF8 ) . Should ( ) . Be ( "K2:Key:k" ) ;
219219 }
0 commit comments