@@ -48,7 +48,7 @@ public void isRequestTimeValidTest()
4848 instance = new SignatureInformation ( requestHeader ) ;
4949 int tolerance = 5 * 60 ;
5050 Boolean isRequestTimeValid = instance . isRequestTimeValid ( tolerance ) ;
51- Assert . Equal < Boolean > ( isRequestTimeValid , true ) ;
51+ Assert . True ( isRequestTimeValid ) ;
5252 }
5353
5454 [ Fact ]
@@ -62,7 +62,7 @@ public void isRequestTimeValidTest2()
6262 instance = new SignatureInformation ( requestHeader ) ;
6363 int tolerance = 500 * 60 ;
6464 Boolean isRequestTimeValid = instance . isRequestTimeValid ( tolerance ) ;
65- Assert . Equal < Boolean > ( isRequestTimeValid , false ) ;
65+ Assert . False ( isRequestTimeValid ) ;
6666 }
6767
6868 /// <summary>
@@ -75,7 +75,7 @@ public void isSignatureSafeTest()
7575 "{\" accountId\" :\" AC1334ffb694cd8d969f51cddf5f7c9b478546d50c\" ,\" callId\" :\" CAccb0b00506553cda09b51c5477f672a49e0b2213\" ,\" callStatus\" :\" ringing\" ,\" conferenceId\" :null,\" direction\" :\" inbound\" ,\" from\" :\" +13121000109\" ,\" parentCallId\" :null,\" queueId\" :null,\" requestType\" :\" inboundCall\" ,\" to\" :\" +13121000096\" }" ;
7676 string signingSecret = "sigsec_ead6d3b6904196c60835d039e91b3341c77a7793" ;
7777 Boolean isSignatureSafe = instance . isSignatureSafe ( requestBody , signingSecret ) ;
78- Assert . Equal < Boolean > ( isSignatureSafe , true ) ;
78+ Assert . True ( isSignatureSafe ) ;
7979 }
8080
8181 [ Fact ]
@@ -85,7 +85,7 @@ public void isSignatureSafeTest2()
8585 "{\" accountId\" :\" AC1334ffb694cd8d969f51cddf5f7c9b478546d50c\" ,\" callId\" :\" CAccb0b00506553cda09b51c5477f672a49e0b2213\" ,\" callStatus\" :\" ringing\" ,\" conferenceId\" :null,\" direction\" :\" inbound\" ,\" from\" :\" +13121000109\" ,\" parentCallId\" :null,\" queueId\" :null,\" requestType\" :\" inboundCall\" ,\" to\" :\" +13121000096\" }" ;
8686 string signingSecret = "sigsec_ead6d3b6904196c60835d039e91b3341c77a7794" ;
8787 Boolean isSignatureSafe = instance . isSignatureSafe ( requestBody , signingSecret ) ;
88- Assert . Equal < Boolean > ( isSignatureSafe , false ) ;
88+ Assert . False ( isSignatureSafe ) ;
8989 }
9090 }
9191}
0 commit comments