You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifdef TEST
#include "unity.h"
#include "../src/showGeneralInfoEmployee.c"
void setUp(void) { }
void tearDown(void) { }
void test1_showGeneralInfoEmployee(void) { char employeeName[20] = "Atharva"; //Arrange
char password[20] = "Atharvafdai7514"; int ergebnis = checkUser(employeeName, password); //Act
TEST_ASSERT_EQUAL_INT(1, ergebnis); //Assert
} void test2_showGeneralInfoEmployee(void) { char employeeName[20] = "Can"; //Arrange
char password[20] = "BlooMaskfdlt3817"; int ergebnis = checkUser(employeeName, password); //Act
TEST_ASSERT_EQUAL_INT(2, ergebnis); //Assert
} void test3_showGeneralInfoEmployee(void) { char employeeName[20] = "Haytham"; //Arrange
char password[20] = "TimoDLfdai7207"; int ergebnis = checkUser(employeeName, password); //Act
TEST_ASSERT_EQUAL_INT(3, ergebnis); //Assert
} void test4_showGeneralInfoEmployee(void) { char employeeName[20] = "Julius"; //Arrange
char password[20] = "Insertcatfdai7057"; int ergebnis = checkUser(employeeName, password); //Act
TEST_ASSERT_EQUAL_INT(4, ergebnis); //Assert
} void test5_showGeneralInfoEmployee(void) { char employeeName[20] = "Mohamed"; //Arrange
char password[20] = "MDfdai6618"; int ergebnis = checkUser(employeeName, password); //Act
TEST_ASSERT_EQUAL_INT(5, ergebnis); //Assert
} void test6_showGeneralInfoEmployee(void) { char employeeName[20] = "Shivam"; //Arrange
char password[20] = "Schivam007fdlt3781"; int ergebnis = checkUser(employeeName, password); //Act
TEST_ASSERT_EQUAL_INT(6, ergebnis); //Assert
}
#endif // TEST
|