public void Test_0901_SetName_Invalid() { string identifier = "*****@*****.**"; string username = ""; KiiUser.Builder builder = KiiUser.BuilderWithIdentifier(identifier); builder.SetName(username); }
public void Test_SetName() { string identifier = "*****@*****.**"; string username = "******"; KiiUser.Builder builder = KiiUser.BuilderWithIdentifier(identifier); builder.SetName(username); builder.Build().Register("123456"); KiiUser user = KiiUser.CurrentUser; Assert.AreEqual(username, user.Username); Assert.AreEqual(identifier, user.Email); Assert.IsNull(user.Phone); Assert.IsNull(user.Country); }
public void Test_0900_SetName_OK() { string identifier = "*****@*****.**"; string username = "******"; KiiUser.Builder builder = KiiUser.BuilderWithIdentifier(identifier); KiiUser user1 = builder.Build(); Assert.IsNull(user1.Username); Assert.AreEqual(identifier, user1.Email); Assert.IsNull(user1.Phone); Assert.IsNull(user1.Country); builder.SetName(username); KiiUser user2 = builder.Build(); Assert.AreEqual(username, user2.Username); Assert.AreEqual(identifier, user2.Email); Assert.IsNull(user2.Phone); Assert.IsNull(user2.Country); }