@@ -31,7 +31,7 @@ public PostmarkSenderTests()
3131 [ Test ]
3232 public void SimpleMailFromCodeSync ( )
3333 {
34- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
34+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
3535
3636 var email = Email
3737 . From ( _fromEmail , FromName )
@@ -49,7 +49,7 @@ public void SimpleMailFromCodeSync()
4949 [ Test ]
5050 public async Task SimpleMailFromCode ( )
5151 {
52- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
52+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
5353
5454 Email . DefaultSender = new PostmarkSender ( _apiKey ) ;
5555
@@ -71,7 +71,7 @@ public async Task SimpleMailFromCode()
7171 [ Test ]
7272 public async Task SimpleMailFromCodeWithAddressesWithPlus ( )
7373 {
74- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
74+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
7575
7676 var email = Email
7777 . From ( _fromEmailHash )
@@ -91,7 +91,7 @@ public async Task SimpleMailFromCodeWithAddressesWithPlus()
9191 [ Test ]
9292 public async Task SimpleMailReplyTo ( )
9393 {
94- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
94+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
9595
9696 var email = Email
9797 . From ( _fromEmail )
@@ -111,7 +111,7 @@ public async Task SimpleMailReplyTo()
111111 [ Test ]
112112 public async Task SimpleMailWithNameFromCode ( )
113113 {
114- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
114+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
115115
116116 var email = Email
117117 . From ( _fromEmail , FromName )
@@ -130,7 +130,7 @@ public async Task SimpleMailWithNameFromCode()
130130 [ Test ]
131131 public async Task SimpleHtmlMailFromCode ( )
132132 {
133- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
133+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
134134
135135 Email . DefaultSender = new PostmarkSender ( _apiKey ) ;
136136
@@ -149,7 +149,7 @@ public async Task SimpleHtmlMailFromCode()
149149 [ Test ]
150150 public async Task SimpleMailWithAttachmentFromCode ( )
151151 {
152- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
152+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
153153
154154 Email . DefaultSender = new PostmarkSender ( _apiKey ) ;
155155
@@ -176,7 +176,7 @@ public async Task SimpleMailWithAttachmentFromCode()
176176 [ Test ]
177177 public async Task SimpleHtmlMailWithAlternateFromCode ( )
178178 {
179- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
179+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
180180
181181 Email . DefaultSender = new PostmarkSender ( _apiKey ) ;
182182
@@ -196,7 +196,7 @@ public async Task SimpleHtmlMailWithAlternateFromCode()
196196 [ Test ]
197197 public async Task SimpleMailFromCodeWithOpts ( )
198198 {
199- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
199+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
200200
201201 var opts = new PostmarkSenderOptions ( _apiKey )
202202 {
@@ -222,7 +222,7 @@ public async Task SimpleMailFromCodeWithOpts()
222222 [ Test ]
223223 public async Task SimpleMailFromCodeWithLowPrio ( )
224224 {
225- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
225+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
226226
227227 var email = Email
228228 . From ( _fromEmail , FromName )
@@ -240,7 +240,7 @@ public async Task SimpleMailFromCodeWithLowPrio()
240240 [ Test ]
241241 public async Task SimpleMailFromCodeWithHighPrio ( )
242242 {
243- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
243+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
244244
245245 var email = Email
246246 . From ( _fromEmail , FromName )
@@ -258,7 +258,7 @@ public async Task SimpleMailFromCodeWithHighPrio()
258258 [ Test ]
259259 public async Task SimpleMailFromCodeWithHeaders ( )
260260 {
261- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
261+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
262262
263263 var email = Email
264264 . From ( _fromEmail , FromName )
@@ -277,31 +277,31 @@ public async Task SimpleMailFromCodeWithHeaders()
277277 [ Test ]
278278 public void SenderNullServerToken ( )
279279 {
280- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
280+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
281281 Func < PostmarkSender > fn = ( ) => new PostmarkSender ( ( string ) null ! ) ;
282282 fn . Should ( ) . Throw < ArgumentNullException > ( ) ;
283283 }
284284
285285 [ Test ]
286286 public void OptionsNullServerToken ( )
287287 {
288- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
288+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
289289 Func < PostmarkSenderOptions > fn = ( ) => new PostmarkSenderOptions ( null ! ) ;
290290 fn . Should ( ) . Throw < ArgumentNullException > ( ) ;
291291 }
292292
293293 [ Test ]
294294 public void NullOptions ( )
295295 {
296- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
296+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
297297 Func < PostmarkSender > fn = ( ) => new PostmarkSender ( ( PostmarkSenderOptions ) null ! ) ;
298298 fn . Should ( ) . Throw < ArgumentNullException > ( ) ;
299299 }
300300
301301 [ Test ]
302302 public void SendNull ( )
303303 {
304- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
304+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
305305 var sender = new PostmarkSender ( _apiKey ) ;
306306 Func < Task > fn = async ( ) => await sender . SendAsync ( null ! ) . ConfigureAwait ( false ) ;
307307 fn . Should ( ) . ThrowAsync < ArgumentNullException > ( ) ;
@@ -310,7 +310,7 @@ public void SendNull()
310310 [ Test ]
311311 public async Task TooManyRecipients ( )
312312 {
313- if ( string . IsNullOrEmpty ( _apiKey ) ) return ; // Skip: No Postmark Credentials
313+ if ( string . IsNullOrEmpty ( _apiKey ) ) Skip . Test ( " No Postmark Credentials" ) ;
314314
315315 var email = Email
316316 . From ( _fromEmail , FromName )
0 commit comments