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"); }
static void PlatformSetUserId(string userId) { if (userId != null && !UserIdContext.CheckUserIdValidForAppCenter(userId)) { return; } UserIdContext.Instance.UserId = userId; }