|
|
@ -16,42 +16,42 @@ void tearDown(void) |
|
|
|
void test1_showGeneralInfoEmployee(void) |
|
|
|
{ |
|
|
|
char employeeName[] = "Atharva"; //Arrange |
|
|
|
char password[] = "Atharva"; |
|
|
|
char password[] = "Atharvafdai7514"; |
|
|
|
int ergebnis = checkUser(employeeName, password); //Act |
|
|
|
TEST_ASSERT_EQUAL_INT(1, ergebnis); //Assert |
|
|
|
} |
|
|
|
void test2_showGeneralInfoEmployee(void) |
|
|
|
{ |
|
|
|
char employeeName[] = "Can"; //Arrange |
|
|
|
char password[] = "BlooMask"; |
|
|
|
char password[] = "BlooMaskfdlt3817"; |
|
|
|
int ergebnis = checkUser(employeeName, password); //Act |
|
|
|
TEST_ASSERT_EQUAL_INT(2, ergebnis); //Assert |
|
|
|
} |
|
|
|
void test3_showGeneralInfoEmployee(void) |
|
|
|
{ |
|
|
|
char employeeName[] = "Haytham"; //Arrange |
|
|
|
char password[] = "TimoDL"; |
|
|
|
char password[] = "TimoDLfdai7207"; |
|
|
|
int ergebnis = checkUser(employeeName, password); //Act |
|
|
|
TEST_ASSERT_EQUAL_INT(3, ergebnis); //Assert |
|
|
|
} |
|
|
|
void test4_showGeneralInfoEmployee(void) |
|
|
|
{ |
|
|
|
char employeeName[] = "Julius"; //Arrange |
|
|
|
char password[] = "Insertcat"; |
|
|
|
char password[] = "Insertcatfdai7057"; |
|
|
|
int ergebnis = checkUser(employeeName, password); //Act |
|
|
|
TEST_ASSERT_EQUAL_INT(4, ergebnis); //Assert |
|
|
|
} |
|
|
|
void test5_showGeneralInfoEmployee(void) |
|
|
|
{ |
|
|
|
char employeeName[] = "Mohamed"; //Arrange |
|
|
|
char password[] = "MD"; |
|
|
|
char password[] = "MDfdai6618"; |
|
|
|
int ergebnis = checkUser(employeeName, password); //Act |
|
|
|
TEST_ASSERT_EQUAL_INT(5, ergebnis); //Assert |
|
|
|
} |
|
|
|
void test6_showGeneralInfoEmployee(void) |
|
|
|
{ |
|
|
|
char employeeName[] = "Shivam"; //Arrange |
|
|
|
char password[] = "Schivam007"; |
|
|
|
char password[] = "Schivam007fdlt3781"; |
|
|
|
int ergebnis = checkUser(employeeName, password); //Act |
|
|
|
TEST_ASSERT_EQUAL_INT(6, ergebnis); //Assert |
|
|
|
} |
|
|
|