public void TestLoginIsCorrect() { ConnectToDB connectBD = new ConnectToDB(); connectBD.OpenConnection(); bool success = connectBD.LoginPlayer("*****@*****.**", "Pa$$w0rd"); connectBD.CloseConnection(); Assert.AreEqual(true, success); }
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); }
public void FakePassword() { ConnectToDB connectBD = new ConnectToDB(); connectBD.OpenConnection(); bool fail = connectBD.LoginPlayer("*****@*****.**", "Pa$$W0rd"); connectBD.CloseConnection(); Assert.AreEqual(false, fail); }
public void TestLoginIsFailed() { ConnectToDB connectBD = new ConnectToDB(); connectBD.OpenConnection(); bool fail = connectBD.LoginPlayer("*****@*****.**", "Pa$$w0rd"); connectBD.CloseConnection(); Assert.AreEqual(false, fail); }