public void AuthenticationToken_0Ctor() { var ret = new NiconicoAuthenticationToken(); Assert.AreEqual(null, ret.MailOrTelephone); Assert.AreEqual(null, ret.Password); }
public void AuthenticationToken_1CtorWithParameters() { var mail = "*****@*****.**"; var pass = "******"; var ret = new NiconicoAuthenticationToken(mail, pass); Assert.AreEqual(mail, ret.MailOrTelephone); Assert.AreEqual(pass, ret.Password); }
public void AuthenticationToken_2SetParameters() { var mail = "*****@*****.**"; var pass = "******"; var ret = new NiconicoAuthenticationToken(); ret.MailOrTelephone = mail; ret.Password = pass; Assert.AreEqual(mail, ret.MailOrTelephone); Assert.AreEqual(pass, ret.Password); }