@@ -78,7 +78,7 @@ public async Task CreateAsync_WithInvalidXummPostJsonPayload_ShouldReturnNullAsy
7878 var result = await _subject . CreateAsync ( It . IsAny < XummPostJsonPayload > ( ) ) ;
7979
8080 // Assert
81- Assert . IsNull ( result ) ;
81+ Assert . That ( result , Is . Null ) ;
8282 }
8383
8484 [ Test ]
@@ -91,7 +91,7 @@ public void CreateAsync_WithInvalidXummPostJsonPayload_ShouldThrowExceptionAsync
9191 var ex = Assert . ThrowsAsync < HttpRequestException > ( async ( ) => await _subject . CreateAsync ( It . IsAny < XummPostJsonPayload > ( ) , true ) ) ;
9292
9393 // Assert
94- Assert . IsNotNull ( ex ) ;
94+ Assert . That ( ex , Is . Not . Null ) ;
9595 Assert . That ( ex ! . Message , Is . EqualTo ( "Error code 602, see XUMM Dev Console, reference: 'a61ba59a-0304-44ae-a86e-d74808bd5190'." ) ) ;
9696 }
9797
@@ -118,7 +118,7 @@ public async Task CreateAsync_WithInvalidXummPostBlobPayload_ShouldReturnNullAsy
118118 var result = await _subject . CreateAsync ( It . IsAny < XummPostBlobPayload > ( ) ) ;
119119
120120 // Assert
121- Assert . IsNull ( result ) ;
121+ Assert . That ( result , Is . Null ) ;
122122 }
123123
124124 [ Test ]
@@ -131,7 +131,7 @@ public void CreateAsync_WithInvalidXummPostBlobPayload_ShouldThrowExceptionAsync
131131 var ex = Assert . ThrowsAsync < HttpRequestException > ( async ( ) => await _subject . CreateAsync ( It . IsAny < XummPostBlobPayload > ( ) , true ) ) ;
132132
133133 // Assert
134- Assert . IsNotNull ( ex ) ;
134+ Assert . That ( ex , Is . Not . Null ) ;
135135 Assert . That ( ex ! . Message , Is . EqualTo ( "Error code 602, see XUMM Dev Console, reference: 'a61ba59a-0304-44ae-a86e-d74808bd5190'." ) ) ;
136136 }
137137
@@ -164,7 +164,7 @@ public async Task CreateAsync_WithInvalidXummPayloadTransaction_ShouldReturnNull
164164 var result = await _subject . CreateAsync ( It . IsAny < XummPayloadTransaction > ( ) ) ;
165165
166166 // Assert
167- Assert . IsNull ( result ) ;
167+ Assert . That ( result , Is . Null ) ;
168168 }
169169
170170 [ Test ]
@@ -177,7 +177,7 @@ public void CreateAsync_WithInvalidXummPayloadTransaction_ShouldThrowExceptionAs
177177 var ex = Assert . ThrowsAsync < HttpRequestException > ( async ( ) => await _subject . CreateAsync ( It . IsAny < XummPayloadTransaction > ( ) , true ) ) ;
178178
179179 // Assert
180- Assert . IsNotNull ( ex ) ;
180+ Assert . That ( ex , Is . Not . Null ) ;
181181 Assert . That ( ex ! . Message , Is . EqualTo ( "Error code 602, see XUMM Dev Console, reference: 'a61ba59a-0304-44ae-a86e-d74808bd5190'." ) ) ;
182182 }
183183
@@ -191,7 +191,7 @@ public void CreateAsync_WhenInternalServerErrorOccurs_ShouldThrowExceptionAsync(
191191 var ex = Assert . ThrowsAsync < HttpRequestException > ( async ( ) => await _subject . CreateAsync ( It . IsAny < XummPayloadTransaction > ( ) , true ) ) ;
192192
193193 // Assert
194- Assert . IsNotNull ( ex ) ;
194+ Assert . That ( ex , Is . Not . Null ) ;
195195 Assert . That ( ex ! . Message , Is . EqualTo ( "Some error has occured" ) ) ;
196196 }
197197
@@ -252,7 +252,7 @@ public async Task GetAsync_WithInvalidPayloadUuid_ShouldReturnNullAsync()
252252 var result = await _subject . GetAsync ( It . IsAny < string > ( ) ) ;
253253
254254 // Assert
255- Assert . IsNull ( result ) ;
255+ Assert . That ( result , Is . Null ) ;
256256 }
257257
258258 [ Test ]
@@ -265,7 +265,7 @@ public void GetAsync_WithInvalidPayloadUuid_ShouldThrowExceptionAsync()
265265 var ex = Assert . ThrowsAsync < HttpRequestException > ( async ( ) => await _subject . GetAsync ( It . IsAny < string > ( ) , true ) ) ;
266266
267267 // Assert
268- Assert . IsNotNull ( ex ) ;
268+ Assert . That ( ex , Is . Not . Null ) ;
269269 Assert . That ( ex ! . Message , Is . EqualTo ( "Error code 602, see XUMM Dev Console, reference: 'a61ba59a-0304-44ae-a86e-d74808bd5190'." ) ) ;
270270 }
271271
@@ -307,7 +307,7 @@ public async Task GetByCustomIdentifierAsync_WithInvalidCustomIdentifier_ShouldR
307307 var result = await _subject . GetByCustomIdentifierAsync ( It . IsAny < string > ( ) ) ;
308308
309309 // Assert
310- Assert . IsNull ( result ) ;
310+ Assert . That ( result , Is . Null ) ;
311311 }
312312
313313 [ Test ]
@@ -320,7 +320,7 @@ public void GetByCustomIdentifierAsync_WithInvalidCustomIdentifier_ShouldThrowEx
320320 var ex = Assert . ThrowsAsync < HttpRequestException > ( async ( ) => await _subject . GetByCustomIdentifierAsync ( It . IsAny < string > ( ) , true ) ) ;
321321
322322 // Assert
323- Assert . IsNotNull ( ex ) ;
323+ Assert . That ( ex , Is . Not . Null ) ;
324324 Assert . That ( ex ! . Message , Is . EqualTo ( "Error code 602, see XUMM Dev Console, reference: 'a61ba59a-0304-44ae-a86e-d74808bd5190'." ) ) ;
325325 }
326326
@@ -444,7 +444,7 @@ public async Task CancelAsync_WithInvalidPayloadUuid_ShouldReturnNullAsync()
444444 var result = await _subject . CancelAsync ( It . IsAny < string > ( ) ) ;
445445
446446 // Assert
447- Assert . IsNull ( result ) ;
447+ Assert . That ( result , Is . Null ) ;
448448 }
449449
450450 [ Test ]
@@ -457,7 +457,7 @@ public void CancelAsync_WithInvalidPayloadUuid_ShouldThrowExceptionAsync()
457457 var ex = Assert . ThrowsAsync < HttpRequestException > ( async ( ) => await _subject . CancelAsync ( It . IsAny < string > ( ) , true ) ) ;
458458
459459 // Assert
460- Assert . IsNotNull ( ex ) ;
460+ Assert . That ( ex , Is . Not . Null ) ;
461461 Assert . That ( ex ! . Message , Is . EqualTo ( "Error code 404, see XUMM Dev Console, reference: 'a61ba59a-0304-44ae-a86e-d74808bd5190'." ) ) ;
462462 }
463463
@@ -518,7 +518,7 @@ await _subject.SubscribeAsync(payloadUuid, delegate (object? sender, XummSubscri
518518 } , It . IsAny < CancellationToken > ( ) ) ;
519519
520520 // Assert
521- Assert . AreEqual ( 4 , eventArgs . Count ) ;
521+ Assert . That ( 4 , Is . EqualTo ( eventArgs . Count ) ) ;
522522 }
523523
524524 [ Test ]
@@ -536,7 +536,7 @@ await _subject.SubscribeAsync(It.IsAny<string>(), delegate (object? sender, Xumm
536536 } , It . IsAny < CancellationToken > ( ) ) ;
537537
538538 // Assert
539- Assert . IsEmpty ( eventArgs ) ;
539+ Assert . That ( eventArgs , Is . Empty ) ;
540540 }
541541
542542 [ Test ]
@@ -567,7 +567,7 @@ public void CreateAndSubscribeAsync_WithInvalidXummPostJsonPayload_ShouldThrowEx
567567 } , It . IsAny < CancellationToken > ( ) ) ) ;
568568
569569 // Assert
570- Assert . IsNotNull ( ex ) ;
570+ Assert . That ( ex , Is . Not . Null ) ;
571571 Assert . That ( ex ! . Message , Is . EqualTo ( "Error code 602, see XUMM Dev Console, reference: 'a61ba59a-0304-44ae-a86e-d74808bd5190'." ) ) ;
572572 }
573573
@@ -599,7 +599,7 @@ public void CreateAndSubscribeAsync_WithInvalidXummPostBlobPayload_ShouldThrowEx
599599 } , It . IsAny < CancellationToken > ( ) ) ) ;
600600
601601 // Assert
602- Assert . IsNotNull ( ex ) ;
602+ Assert . That ( ex , Is . Not . Null ) ;
603603 Assert . That ( ex ! . Message , Is . EqualTo ( "Error code 602, see XUMM Dev Console, reference: 'a61ba59a-0304-44ae-a86e-d74808bd5190'." ) ) ;
604604 }
605605
0 commit comments