示例#1
0
        public void GetDoesntExistUser_ReturnsNull()
        {
            var user = new StubIUser()
            {
                NickGet = () => { return(testNick); }
            };

            Assert.AreEqual(null, service.GetUser(user.NickGet()));
        }
示例#2
0
        public void GetExistUser_ReturnUser()
        {
            var user = new StubIUser()
            {
                NickGet = () => { return(testNick); }
            };

            service.SignUp(user);
            Assert.AreEqual(user, service.GetUser(user.NickGet()));
        }