public void TestRegisterMatch() { Match match = new Match(); DateTime dateTimeCurrent = DateTime.Now; match.dateHour = dateTimeCurrent; match.idSentence = 1; QueryDB queryDB = new QueryDB(); idMatch = queryDB.RegisterMatch(match); Assert.IsNotNull(idMatch); }
public void TestErrorRegisterMatch() { Match match = new Match(); DateTime dateTimeCurrent = DateTime.Now; match.dateHour = dateTimeCurrent; QueryDB queryDB = new QueryDB(); int idMatch; idMatch = queryDB.RegisterMatch(match); Thread.Sleep(2000); Assert.AreNotEqual(0, idMatch); }