public void BuildWindowsLiveTokenRefreshQuery()
        {
            RefreshToken dummyToken = new RefreshToken()
            {
                Jwt = "eyAbcdef.Jwt"
            };
            WindowsLiveRefreshQuery     refreshQuery = new WindowsLiveRefreshQuery(dummyToken);
            Dictionary <string, string> queryParams  = refreshQuery.GetQuery();

            Assert.AreEqual(queryParams.Count, 4);
            Assert.AreEqual(queryParams["client_id"], "0000000048093EE3");
            Assert.AreEqual(queryParams["grant_type"], "refresh_token");
            Assert.AreEqual(queryParams["refresh_token"], "eyAbcdef.Jwt");
            Assert.AreEqual(queryParams["scope"], "service::user.auth.xboxlive.com::MBI_SSL");
            Assert.IsFalse(queryParams.ContainsKey("ClientId"));
            Assert.IsFalse(queryParams.ContainsKey("GrantType"));
            Assert.IsFalse(queryParams.ContainsKey("RefreshToken"));
        }
        public void BuildWindowsLiveTokenRefreshQuery()
        {
            RefreshToken dummyToken = new RefreshToken()
            {
                Jwt = "eyAbcdef.Jwt"
            };
            WindowsLiveRefreshQuery refreshQuery = new WindowsLiveRefreshQuery(dummyToken);
            NameValueCollection     queryParams  = refreshQuery.GetQuery();

            Assert.AreEqual(queryParams.Count, 4);
            Assert.AreEqual(queryParams["client_id"], "0000000048093EE3");
            Assert.AreEqual(queryParams["grant_type"], "refresh_token");
            Assert.AreEqual(queryParams["refresh_token"], "eyAbcdef.Jwt");
            Assert.AreEqual(queryParams["scope"], "service::user.auth.xboxlive.com::MBI_SSL");
            Assert.IsNull(queryParams["ClientId"]);
            Assert.IsNull(queryParams["GrantType"]);
            Assert.IsNull(queryParams["RefreshToken"]);
        }