@@ -199,15 +199,15 @@ public void Resolve_Should_Return_Formatter_Of_Multiple_Levels_Of_Settings()
199199
200200
201201 [ Fact ]
202- public void Resolve_Should_Parse_AttachmentHandling_As_Enum_Embed ( )
202+ public void Resolve_Should_Parse_AttachmentHandling_Mode_As_Enum_Embed ( )
203203 {
204204 // Arrange
205205 var filePath = "config.json" ;
206206 var fileContent = @"
207207 {
208208 ""formatters"": {
209209 ""cucumberMessages"": {
210- ""attachmentHandling "": ""Embed""
210+ ""mode "": ""Embed""
211211 }
212212 }
213213 }" ;
@@ -221,19 +221,19 @@ public void Resolve_Should_Parse_AttachmentHandling_As_Enum_Embed()
221221
222222 // Assert
223223 result . Should ( ) . HaveCount ( 1 ) ;
224- result [ "cucumberMessages" ] [ "attachmentHandling " ] . Should ( ) . Be ( AttachmentHandlingOption . Embed ) ;
224+ result [ "cucumberMessages" ] [ "mode " ] . Should ( ) . Be ( AttachmentHandlingOption . Embed ) ;
225225 }
226226
227227 [ Fact ]
228- public void Resolve_Should_Parse_AttachmentHandling_As_Enum_External ( )
228+ public void Resolve_Should_Parse_AttachmentHandling_Mode_As_Enum_External ( )
229229 {
230230 // Arrange
231231 var filePath = "config.json" ;
232232 var fileContent = @"
233233 {
234234 ""formatters"": {
235235 ""cucumberMessages"": {
236- ""attachmentHandling "": ""External""
236+ ""mode "": ""External""
237237 }
238238 }
239239 }" ;
@@ -247,19 +247,19 @@ public void Resolve_Should_Parse_AttachmentHandling_As_Enum_External()
247247
248248 // Assert
249249 result . Should ( ) . HaveCount ( 1 ) ;
250- result [ "cucumberMessages" ] [ "attachmentHandling " ] . Should ( ) . Be ( AttachmentHandlingOption . External ) ;
250+ result [ "cucumberMessages" ] [ "mode " ] . Should ( ) . Be ( AttachmentHandlingOption . External ) ;
251251 }
252252
253253 [ Fact ]
254- public void Resolve_Should_Parse_AttachmentHandling_As_Enum_None ( )
254+ public void Resolve_Should_Parse_AttachmentHandling_Mode_As_Enum_None ( )
255255 {
256256 // Arrange
257257 var filePath = "config.json" ;
258258 var fileContent = @"
259259 {
260260 ""formatters"": {
261261 ""cucumberMessages"": {
262- ""attachmentHandling "": ""None""
262+ ""mode "": ""None""
263263 }
264264 }
265265 }" ;
@@ -273,19 +273,19 @@ public void Resolve_Should_Parse_AttachmentHandling_As_Enum_None()
273273
274274 // Assert
275275 result . Should ( ) . HaveCount ( 1 ) ;
276- result [ "cucumberMessages" ] [ "attachmentHandling " ] . Should ( ) . Be ( AttachmentHandlingOption . None ) ;
276+ result [ "cucumberMessages" ] [ "mode " ] . Should ( ) . Be ( AttachmentHandlingOption . None ) ;
277277 }
278278
279279 [ Fact ( Skip = "Skip while deciding on proper behavior for invalid configurations" ) ]
280- public void Resolve_Should_Parse_AttachmentHandling_CaseInsensitive ( )
280+ public void Resolve_Should_Parse_AttachmentHandling_Mode_CaseInsensitive ( )
281281 {
282282 // Arrange
283283 var filePath = "config.json" ;
284284 var fileContent = @"
285285 {
286286 ""formatters"": {
287287 ""cucumberMessages"": {
288- ""attachmentHandling "": ""embed""
288+ ""mode "": ""embed""
289289 }
290290 }
291291 }" ;
@@ -299,19 +299,19 @@ public void Resolve_Should_Parse_AttachmentHandling_CaseInsensitive()
299299
300300 // Assert
301301 result . Should ( ) . HaveCount ( 1 ) ;
302- result [ "cucumberMessages" ] [ "attachmentHandling " ] . Should ( ) . Be ( AttachmentHandlingOption . Embed ) ;
302+ result [ "cucumberMessages" ] [ "mode " ] . Should ( ) . Be ( AttachmentHandlingOption . Embed ) ;
303303 }
304304
305305 [ Fact ]
306- public void Resolve_Should_Keep_String_When_AttachmentHandling_Value_Is_Invalid ( )
306+ public void Resolve_Should_Keep_String_When_AttachmentHandling_Mode_Value_Is_Invalid ( )
307307 {
308308 // Arrange
309309 var filePath = "config.json" ;
310310 var fileContent = @"
311311 {
312312 ""formatters"": {
313313 ""cucumberMessages"": {
314- ""attachmentHandling "": ""INVALID_VALUE""
314+ ""mode "": ""INVALID_VALUE""
315315 }
316316 }
317317 }" ;
@@ -325,11 +325,11 @@ public void Resolve_Should_Keep_String_When_AttachmentHandling_Value_Is_Invalid(
325325
326326 // Assert
327327 result . Should ( ) . HaveCount ( 1 ) ;
328- result [ "cucumberMessages" ] [ "attachmentHandling " ] . Should ( ) . Be ( "INVALID_VALUE" ) ;
328+ result [ "cucumberMessages" ] [ "mode " ] . Should ( ) . Be ( "INVALID_VALUE" ) ;
329329 }
330330
331331 [ Fact ]
332- public void Resolve_Should_Parse_AttachmentHandling_In_Nested_Configuration ( )
332+ public void Resolve_Should_Parse_AttachmentHandling_Mode_In_Nested_Configuration ( )
333333 {
334334 // Arrange
335335 var filePath = "config.json" ;
@@ -338,7 +338,7 @@ public void Resolve_Should_Parse_AttachmentHandling_In_Nested_Configuration()
338338 ""formatters"": {
339339 ""cucumberMessages"": {
340340 ""outputPath"": ""output/results.ndjson"",
341- ""attachmentHandling "": ""External"",
341+ ""mode "": ""External"",
342342 ""otherSettings"": {
343343 ""enabled"": true
344344 }
@@ -356,7 +356,7 @@ public void Resolve_Should_Parse_AttachmentHandling_In_Nested_Configuration()
356356 // Assert
357357 result . Should ( ) . HaveCount ( 1 ) ;
358358 result [ "cucumberMessages" ] [ "outputPath" ] . Should ( ) . Be ( "output/results.ndjson" ) ;
359- result [ "cucumberMessages" ] [ "attachmentHandling " ] . Should ( ) . Be ( AttachmentHandlingOption . External ) ;
359+ result [ "cucumberMessages" ] [ "mode " ] . Should ( ) . Be ( AttachmentHandlingOption . External ) ;
360360
361361 var otherSettings = result [ "cucumberMessages" ] [ "otherSettings" ] ;
362362 otherSettings . Should ( ) . BeOfType < Dictionary < string , object > > ( ) ;
@@ -373,10 +373,10 @@ public void Resolve_Should_Parse_Multiple_Formatters_With_Different_AttachmentHa
373373 {
374374 ""formatters"": {
375375 ""formatter1"": {
376- ""attachmentHandling "": ""Embed""
376+ ""mode "": ""Embed""
377377 },
378378 ""formatter2"": {
379- ""attachmentHandling "": ""External""
379+ ""mode "": ""External""
380380 }
381381 }
382382 }" ;
@@ -390,8 +390,8 @@ public void Resolve_Should_Parse_Multiple_Formatters_With_Different_AttachmentHa
390390
391391 // Assert
392392 result . Should ( ) . HaveCount ( 2 ) ;
393- result [ "formatter1" ] [ "attachmentHandling " ] . Should ( ) . Be ( AttachmentHandlingOption . Embed ) ;
394- result [ "formatter2" ] [ "attachmentHandling " ] . Should ( ) . Be ( AttachmentHandlingOption . External ) ;
393+ result [ "formatter1" ] [ "mode " ] . Should ( ) . Be ( AttachmentHandlingOption . Embed ) ;
394+ result [ "formatter2" ] [ "mode " ] . Should ( ) . Be ( AttachmentHandlingOption . External ) ;
395395 }
396396
397397 [ Fact ]
@@ -403,9 +403,9 @@ public void Resolve_Should_Parse_Formatter_With_AttachmentOptions()
403403 {
404404 ""formatters"": {
405405 ""formatter1"": {
406- ""attachmentHandlingOptions "": {
407- ""attachmentHandling "": ""External"",
408- ""externalAttachmentsStoragePath "": ""/path/to/attachments""
406+ ""attachmentHandling "": {
407+ ""mode "": ""External"",
408+ ""attachmentsStoragePath "": ""/path/to/attachments""
409409 }
410410 }
411411 }
@@ -419,8 +419,8 @@ public void Resolve_Should_Parse_Formatter_With_AttachmentOptions()
419419 var result = _sut . Resolve ( ) ;
420420
421421 // Assert
422- result [ "formatter1" ] [ "attachmentHandlingOptions " ] . Should ( ) . BeOfType < AttachmentHandlingOptions > ( ) ;
423- var attachmentOptions = ( AttachmentHandlingOptions ) result [ "formatter1" ] [ "attachmentHandlingOptions " ] ;
422+ result [ "formatter1" ] [ "attachmentHandling " ] . Should ( ) . BeOfType < AttachmentHandlingOptions > ( ) ;
423+ var attachmentOptions = ( AttachmentHandlingOptions ) result [ "formatter1" ] [ "attachmentHandling " ] ;
424424 attachmentOptions . AttachmentHandlingOption . Should ( ) . Be ( AttachmentHandlingOption . External ) ;
425425 attachmentOptions . ExternalAttachmentsStoragePath . Should ( ) . Be ( "/path/to/attachments" ) ;
426426 }
0 commit comments