+The [`LoginWithUsernameAndPassword`](.\LoginTests.cs#L79) test simulates running the `Connect-AzAccount` cmdlet with a username and password. This test requires no additional setup; however, since the .NET Core authentication uses device code login, and because we aren't using a PowerShell widow to display messages during the test, you will need to set a breakpoint in the [`UserTokenProvider.Netcore.cs`](..\Authentication\Authentication\UserTokenProvider.Netcore.cs#L217) file where the `code` variable is used. The `Message` property of this variable contains the message that is normally displayed in .NET Core authentication, which will tell you to visit https://microsoft.com/devicelogin and enter the given code for authentication.
0 commit comments