@@ -106,7 +106,7 @@ public void SetUserPassword_WithEmptyString_ThrowsArgumentException()
106106 #region HTTP Content Serialization Tests
107107
108108 [ Test ]
109- public void UserPassword_SerializesToCorrectHttpContent ( )
109+ public async Task UserPassword_SerializesToCorrectHttpContent ( )
110110 {
111111 var options = new PdfOutputOptions
112112 {
@@ -118,11 +118,11 @@ public void UserPassword_SerializesToCorrectHttpContent()
118118 c . Headers . ContentDisposition ? . Name == "userPassword" ) ;
119119
120120 content . Should ( ) . NotBeNull ( ) ;
121- content ! . ReadAsStringAsync ( ) . Result . Should ( ) . Be ( "openme" ) ;
121+ ( await content ! . ReadAsStringAsync ( ) ) . Should ( ) . Be ( "openme" ) ;
122122 }
123123
124124 [ Test ]
125- public void OwnerPassword_SerializesToCorrectHttpContent ( )
125+ public async Task OwnerPassword_SerializesToCorrectHttpContent ( )
126126 {
127127 var options = new PdfOutputOptions
128128 {
@@ -134,7 +134,7 @@ public void OwnerPassword_SerializesToCorrectHttpContent()
134134 c . Headers . ContentDisposition ? . Name == "ownerPassword" ) ;
135135
136136 content . Should ( ) . NotBeNull ( ) ;
137- content ! . ReadAsStringAsync ( ) . Result . Should ( ) . Be ( "editme" ) ;
137+ ( await content ! . ReadAsStringAsync ( ) ) . Should ( ) . Be ( "editme" ) ;
138138 }
139139
140140 [ Test ]
@@ -154,6 +154,7 @@ public void NullPasswords_NotIncludedInHttpContent()
154154
155155 #region Integration Tests
156156
157+ [ Category ( "Integration" ) ]
157158 [ Test ]
158159 public async Task HtmlToPdf_WithEncryption_Succeeds ( )
159160 {
0 commit comments