@@ -200,7 +200,7 @@ public async Task CanProduceValidXmlInvoice()
200200
201201 var result = await XmlInvoiceValidator . ValidateSchematron ( xmlInvoice ) ;
202202 var resultText = string . Join ( Environment . NewLine , result . Validations . Select ( s => $ "{ s . Severity } :\t { s . Message } ") ) ;
203- Assert . IsTrue ( result . Validations . Count == 0 , resultText ) ;
203+ Assert . IsEmpty ( result . Validations , resultText ) ;
204204 Assert . IsTrue ( result . IsValid , resultText ) ;
205205 }
206206
@@ -233,7 +233,7 @@ public async Task CanValidateBaseDtoSchematronTest()
233233 XmlInvoice xmlInvoice = invoiceMapper . ToXml ( invoiceBaseDto ) ;
234234 var result = await XmlInvoiceValidator . ValidateSchematron ( xmlInvoice ) ;
235235 var resultText = string . Join ( Environment . NewLine , result . Validations . Select ( s => $ "{ s . Severity } :\t { s . Message } ") ) ;
236- Assert . IsTrue ( result . Validations . Count == 0 , resultText ) ;
236+ Assert . IsEmpty ( result . Validations , resultText ) ;
237237 Assert . IsTrue ( result . IsValid , resultText ) ;
238238 }
239239
@@ -256,7 +256,7 @@ public async Task CanValidateBaseDtoSchematronWithRoundingTest()
256256 XmlInvoice xmlInvoice = invoiceMapper . ToXml ( invoiceBaseDto ) ;
257257 var result = await XmlInvoiceValidator . ValidateSchematron ( xmlInvoice ) ;
258258 var resultText = string . Join ( Environment . NewLine , result . Validations . Select ( s => $ "{ s . Severity } :\t { s . Message } ") ) ;
259- Assert . IsTrue ( result . Validations . Count == 0 , resultText ) ;
259+ Assert . IsEmpty ( result . Validations , resultText ) ;
260260 Assert . IsTrue ( result . IsValid , resultText ) ;
261261 }
262262
@@ -277,7 +277,7 @@ public async Task CanProduceValidInvoiceDto()
277277
278278 var result = await XmlInvoiceValidator . ValidateSchematron ( mappedXmlInvoice ) ;
279279 var resultText = string . Join ( Environment . NewLine , result . Validations . Select ( s => $ "{ s . Severity } :\t { s . Message } ") ) ;
280- Assert . IsTrue ( result . Validations . Count == 0 , resultText ) ;
280+ Assert . IsEmpty ( result . Validations , resultText ) ;
281281 Assert . IsTrue ( result . IsValid , resultText ) ;
282282 }
283283
@@ -294,7 +294,7 @@ public async Task CanValidateExtendedDto()
294294 var xmlInvoice = mapper . ToXml ( invoiceExtendedDto ) ;
295295 var result = await XmlInvoiceValidator . ValidateSchematron ( xmlInvoice ) ;
296296 var resultText = string . Join ( Environment . NewLine , result . Validations . Select ( s => $ "{ s . Severity } :\t { s . Message } ") ) ;
297- Assert . IsTrue ( result . Validations . Count == 0 , resultText ) ;
297+ Assert . IsEmpty ( result . Validations , resultText ) ;
298298 Assert . IsTrue ( result . IsValid , resultText ) ;
299299 }
300300
@@ -315,7 +315,7 @@ public async Task CanProduceValidSmallBusinessXmlInvoice()
315315
316316 var result = await XmlInvoiceValidator . ValidateSchematron ( xmlInvoice ) ;
317317 var resultText = string . Join ( Environment . NewLine , result . Validations . Select ( s => $ "{ s . Severity } :\t { s . Message } ") ) ;
318- Assert . IsTrue ( result . Validations . Count == 0 , resultText ) ;
318+ Assert . IsEmpty ( result . Validations , resultText ) ;
319319 Assert . IsTrue ( result . IsValid , resultText ) ;
320320 }
321321}
0 commit comments