Beispiel #1
0
        public void setUserPreferencesTest()
        {
            API parent = _api;
            data target = new data(parent);
            List<string> values = new List<string> { Constants.TestString2, Constants.TestString3};
            bool replace = true;
            target.setUserPreferences(values, replace);
            //TODO: Figure out why there is no data coming back.  Could be a problem with the facebook api
            //for (int i = 0; i < 202; i++)
            //{
            //    var res = target.getUserPreference(i);
            //    System.Diagnostics.Debug.WriteLine(i.ToString()+ ": "+ res);
            //}
            string result1 = target.getUserPreference(0);

            Assert.AreEqual(Constants.TestString2, result1);
            string result2 = target.getUserPreference(1);
            Assert.AreEqual(Constants.TestString3, result2);
        }