public void Test_0801_SetEmail_Invalid() { string identifier = "+819011112222"; string email = "testOkii.com"; KiiUser.Builder builder = KiiUser.BuilderWithIdentifier(identifier); builder.SetEmail(email); }
public void Test_SetEmail() { string identifier = "+8719011112222"; string email = "*****@*****.**"; KiiUser.Builder builder = KiiUser.BuilderWithIdentifier(identifier); builder.SetEmail(email); builder.Build().Register("123456"); KiiUser user = KiiUser.CurrentUser; Assert.IsNull(user.Username); Assert.AreEqual(email, user.Email); Assert.AreEqual(identifier, user.Phone); Assert.IsNull(user.Country); }
public void Test_0800_SetEmail_OK() { string identifier = "kii1234"; string email = "*****@*****.**"; KiiUser.Builder builder = KiiUser.BuilderWithIdentifier(identifier); KiiUser user1 = builder.Build(); Assert.AreEqual(identifier, user1.Username); Assert.IsNull(user1.Email); Assert.IsNull(user1.Phone); Assert.IsNull(user1.Country); builder.SetEmail(email); KiiUser user2 = builder.Build(); Assert.AreEqual(identifier, user2.Username); Assert.AreEqual(email, user2.Email); Assert.IsNull(user2.Phone); Assert.IsNull(user2.Country); }