TestProductionCode2.c 700 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

#include "ProductionCode2.h"
#include "unity.h"

/* These should be ignored because they are commented out in various ways:
#include "whatever.h" 
#include "somethingelse.h"
*/

void setUp(void)
{
}

void tearDown(void)
{
}

18 19 20 21
void test_IgnoredTest(void);
void test_AnotherIgnoredTest(void);
void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void);

22 23 24 25 26 27 28 29 30 31 32 33 34 35
void test_IgnoredTest(void)
{
    TEST_IGNORE_MESSAGE("This Test Was Ignored On Purpose");
}

void test_AnotherIgnoredTest(void)
{
    TEST_IGNORE_MESSAGE("These Can Be Useful For Leaving Yourself Notes On What You Need To Do Yet");
}

void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void)
{
    TEST_IGNORE(); /* Like This */
}