#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"

extern "C"
{
#include "Flash.h"
}

TEST_GROUP(Flash)
{
    void setup()
    {
        Flash_Create();
    }

    void teardown()
    {
        Flash_Destroy();
        mock("IO").checkExpectations();
        mock().clear();
    }
};

TEST(Flash, succeeds_and_is_ready_immediately)
{
    LONGS_EQUAL(Flash_OK, Flash_Program(0x1000, 0x4242));
}

/* Test List for Flash Exercise 1

succeeds and not ready immediately
vpp error
programming error
proected block error

*/
