示例#1
0
        protected override IEnumerator runTest()
        {
            IUnfriendResult unfriendResult = null;

            bobSession.LocalUser.Unfriend(bobSession.LocalUser.Friends.First(), delegate(IUnfriendResult r)
            {
                unfriendResult = r;
            });
            while (unfriendResult == null)
            {
                yield return(null);
            }
            IntegrationTestEx.FailIf(!unfriendResult.Success, "Unfriend did not succeed");
            while (!dataEntityCollection.GetEntityByType <FriendData>().IsNull)
            {
                yield return(null);
            }
        }
示例#2
0
 private void onUnfriendSent(IUnfriendResult result, string friendName)
 {
     Service.Get <EventDispatcher>().DispatchEvent(new FriendsServiceEvents.UnfriendSent(result.Success, friendName));
 }