Example #1
0
        public void AuthenticationToken_0Ctor()
        {
            var ret = new NiconicoAuthenticationToken();

            Assert.AreEqual(null, ret.MailOrTelephone);
            Assert.AreEqual(null, ret.Password);
        }
Example #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);
        }
Example #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);
        }