Example #1
0
        public void namePasswordMatchTest10()
        {
            EditorSceneManager.OpenScene("Assets/Scenes/Login.unity");
            LoginUIscript script = GameObject.Find("Canvas").GetComponent <LoginUIscript>();

            string username = "******";
            string password = "******";
            List <Tuple <string, string> > mockdb = null;

            Assert.IsFalse(script.namePasswordMatch(username, password, mockdb));
        }
Example #2
0
        public void namePasswordMatchTest2()
        {
            EditorSceneManager.OpenScene("Assets/Scenes/Login.unity");
            LoginUIscript script = GameObject.Find("Canvas").GetComponent <LoginUIscript>();

            string username = "******";
            string password = "******";
            var    mockdb   = new List <Tuple <string, string> > {
                new Tuple <string, string>("Testnaam1", "testPW123"), new Tuple <string, string>("Testnaam2", "TESTpw123")
            };

            Assert.IsTrue(script.namePasswordMatch(username, password, mockdb));
        }