Exemple #1
0
        public void TestLoginIsCorrect()
        {
            ConnectToDB connectBD = new ConnectToDB();

            connectBD.OpenConnection();

            bool success = connectBD.LoginPlayer("*****@*****.**", "Pa$$w0rd");

            connectBD.CloseConnection();

            Assert.AreEqual(true, success);
        }
Exemple #2
0
        public void TestRegisterCorrect()
        {
            ConnectToDB connectBD = new ConnectToDB();

            connectBD.OpenConnection();

            bool success = connectBD.AddPlayer("UN_ZZEEERO", "*****@*****.**", "Pa$$w0rd", 0, 10000);

            connectBD.CloseConnection();

            Assert.AreEqual(true, success);
        }
Exemple #3
0
        public void FakePassword()
        {
            ConnectToDB connectBD = new ConnectToDB();

            connectBD.OpenConnection();

            bool fail = connectBD.LoginPlayer("*****@*****.**", "Pa$$W0rd");

            connectBD.CloseConnection();

            Assert.AreEqual(false, fail);
        }
Exemple #4
0
        public void TestLoginIsFailed()
        {
            ConnectToDB connectBD = new ConnectToDB();

            connectBD.OpenConnection();

            bool fail = connectBD.LoginPlayer("*****@*****.**", "Pa$$w0rd");

            connectBD.CloseConnection();

            Assert.AreEqual(false, fail);
        }