Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mocksample.c Source File

mocksample.c

00001 // This is just a sample test file to be used to test the generator script
00002 #ifndef TEST_SAMPLE_H
00003 #define TEST_SAMPLE_H
00004 
00005 #include <setjmp.h>
00006 #include "unity.h"
00007 #include "funky.h"
00008 #include "Mockstanky.h"
00009 
00010 void setUp(void)
00011 {
00012   CustomSetupStuff();
00013 }
00014 
00015 void tearDown(void)
00016 {
00017   CustomTeardownStuff
00018 }
00019 
00020 //Yup, nice comment
00021 void test_TheFirstThingToTest(void)
00022 {
00023     TEST_ASSERT(1);
00024 
00025     TEST_ASSERT_TRUE(1);
00026 }
00027 
00028 /*
00029 void test_ShouldBeIgnored(void)
00030 {
00031     DoesStuff();
00032 }
00033 */
00034 
00035 //void test_ShouldAlsoNotBeTested(void)
00036 //{
00037 //    Call_An_Expect();
00038 //    
00039 //    CallAFunction();
00040 //    test_CallAFunctionThatLooksLikeATest();
00041 //}
00042 
00043 void test_TheSecondThingToTest(void)
00044 {
00045     Call_An_Expect();
00046     
00047     CallAFunction();
00048     test_CallAFunctionThatLooksLikeATest();
00049 }
00050 
00051 #endif //TEST_SAMPLE_H