Example #1
0
        public void GetUserTest()
        {
            Users users = new Users();
            User test = users.GetUser("123");

            Assert.AreEqual("Brian", test.GetName());
            Assert.AreEqual("*****@*****.**", test.GetEmail());
            Assert.AreEqual("password", test.GetPassword());
            Assert.AreEqual("123", test.GetUserName());
        }
Example #2
0
        public void EditUserTest()
        {
            Users users = new Users();
            User user = users.GetUser("123");

            Assert.IsTrue(user.EditName("TEST"));
            Assert.IsTrue(user.EditEmail("TEST"));
            Assert.IsTrue(user.EditPassword ("TEST"));

            Assert.AreEqual("TEST", user.GetName());
            Assert.AreEqual("TEST", user.GetEmail());
            Assert.AreEqual("TEST", user.GetPassword());

            Assert.IsTrue(user.EditName("Brian"));
            Assert.IsTrue(user.EditEmail("*****@*****.**"));
            Assert.IsTrue(user.EditPassword("password"));
        }