Esempio n. 1
0
        public void AuthenticationToken_0Ctor()
        {
            var ret = new NiconicoAuthenticationToken();

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

            Assert.AreEqual(mail, ret.MailOrTelephone);
            Assert.AreEqual(pass, ret.Password);
        }
Esempio n. 3
0
        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);
        }