public void IsOAuth2Auth_nullCredential() { Assert.IsFalse(RegistryAuthenticator.IsOAuth2Auth(null)); }
public void IsOAuth2Auth_basicAuth() { Credential credential = Credential.From("name", "password"); Assert.IsFalse(RegistryAuthenticator.IsOAuth2Auth(credential)); }
public void IsOAuth2Auth_oauth2() { Credential credential = Credential.From("<token>", "oauth2_token"); Assert.IsTrue(RegistryAuthenticator.IsOAuth2Auth(credential)); }