示例#1
0
        void target_GetAccessTokenCompleted(object sender, OAuth2AccessTokenEventArgs e)
        {
            var expected = System.Net.HttpStatusCode.OK;
            var actual   = e;

            Assert.AreEqual(expected, actual.StatusCode);

            this._TestTrigger.Set();
        }
示例#2
0
        public void GetAccessTokenTest()
        {
            OAuth2 target   = new OAuth2(userAgent, server);
            string clientID = devKey;                   // Dev Key
            string authCode = "88-36-13-9982-57-78-1373-105-119-121-56-153915-9656-73102-32-47-91-104-11890-118-37-1811281-123";
            OAuth2AccessTokenEventArgs expected = null; // TODO: Initialize to an appropriate value
            OAuth2AccessTokenEventArgs actual;

            actual = target.GetAccessToken(clientID, authCode);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }