예제 #1
0
        public void UserIdLengthShouldNotBeGreaterThan256()
        {
            string userIdGreaterThan256 = new string('a', 257);
            var    isUserIdValid        = UserIdContext.CheckUserIdValidForAppCenter(userIdGreaterThan256);

            Assert.IsFalse(isUserIdValid, "User Id can't be greater than 256");
        }
예제 #2
0
 static void PlatformSetUserId(string userId)
 {
     if (userId != null && !UserIdContext.CheckUserIdValidForAppCenter(userId))
     {
         return;
     }
     UserIdContext.Instance.UserId = userId;
 }