The test in the ConsolaAppTest is failing due to an error related to the ‘scope’ input parameter when using the MailKit library. The specific error message is:
Microsoft.Identity.Client.MsalServiceException: 'AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope email https://outlook.office.com/IMAP.AccessAsUser.All is not valid.
Trace ID: XXXXX
Correlation ID: XXXXX'
The exact line that throws the error is "confidentialClientApplication.AcquireTokenForClient."
Prior to the test, all necessary setup was performed in Azure as shown in the YouTube video for the App Registration.
Thanks for your help and your videos are awesome!