public void ShouldReturnCorrectAuthUrlFourScopes()
{
OAuthScope[] scopes = new OAuthScope[] { OAuthScope.FilesRead, OAuthScope.FilesWrite, OAuthScope.ACLInvitations, OAuthScope.UserPassword };
var uri = Client.GenerateAuthorizationUrl(scopes);
var expect =
String.Format("{0}/authorize?response_type=code", Settings.HostName) +
String.Format("&client_id={0}", Settings.ClientID) +
String.Format("&redirect_uri={0}", Settings.RedirectUri) +
String.Format("&scope={0}", "files.read,files.write,acl.invitations,user.password");
Assert.AreEqual(expect, uri);
}