コード例 #1
0
        public void Display_LogoutView_ShouldReturnExpectedView()
        {
            User  user       = new User(FirstUsername, "password", Role.Student);
            IView logoutView = new Logout(user);

            string actualView   = logoutView.Display();
            string expectedView = string.Format($"User {user.Username} logged out successfully.");

            Assert.AreEqual(expectedView, actualView, "Unsuccessful view within the login operation!");
        }