File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Aspose.Email-Cloud.Tests/Tests Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,21 @@ public async Task AiBcrParseModelTest()
424424 Assert . AreEqual ( "Alex Thomas" , result . Value . First ( ) . DisplayName ) ;
425425 }
426426
427+ [ Test ]
428+ [ Pipeline ]
429+ public async Task DiscoverEmailConfigTest ( )
430+ {
431+ var configs = await emailApi . DiscoverEmailConfigAsync (
432+ new DiscoverEmailConfigRequest ( "example@gmail.com" ) ) ;
433+ var protocols = configs . Value
434+ . Select ( config => config . Type )
435+ . ToList ( ) ;
436+ Assert . Contains ( "SMTP" , protocols ) ;
437+ Assert . Contains ( "IMAP" , protocols ) ;
438+ Assert . AreEqual ( "smtp.gmail.com" , configs . Value
439+ . First ( config => config . Type == "SMTP" ) . Host ) ;
440+ }
441+
427442 private static string FileToBase64 ( string filePath )
428443 {
429444 var bytes = File . ReadAllBytes ( filePath ) ;
You can’t perform that action at this time.
0 commit comments