コード例 #1
0
        public void Should_Check_If_User_Is_Connected_True()
        {
            //arrange
            var server = new ChatServer();
            var user   = new User(String.Empty);

            server.Users.Add(user);
            server.Connect(user);

            //act
            var result = server.IsConnected(user);

            //assert
            result.ShouldBeEquivalentTo(true);
        }