コード例 #1
0
        public void TestAuthUrl()
        {
            DropboxService service = new DropboxService();

            Uri expected = new Uri("https://www.dropbox.com/1/oauth2/authorize?response_type=code&client_id=wo1k230c99d8d7q&redirect_uri=https:%2F%2Flocalhost%2FDropbox%2FAuthorize&state=" + service.AntiForgeryToken);
            Uri actual = service.AuthUrl();

            Assert.AreEqual(expected.ToString(), actual.ToString());
        }