示例#1
0
        // run all tests
        public static void Run()
        {
            var test = new AuthTests();

            // register
            test.RegisterWithValidUser();
            test.RegisterWithDuplicateUser();
            test.RegisterWithEmptyUser();
            test.RegisterWithEmptyPassword();

            // login
            test.SuccessLogin();
            test.WrongUsernameLogin();
            test.WrongPasswordLogin();

            //logout
            test.Logout();
        }
示例#2
0
 static void Main(string[] args)
 {
     // authentication tests
     AuthTests.Run();
 }