/******************************************************************************* * Copyright (c) 2015, Rockwell Automation, Inc. * All rights reserved. * ******************************************************************************/ #include #include extern "C" { #include #include } TEST_GROUP(RandomClass){ }; TEST(RandomClass, CreateXOrShiftObject) { Random* pRandom = NULL; uint32_t nResult = 0; pRandom = RandomNew(SetXorShiftSeed, NextXorShiftUint32); POINTERS_EQUAL(SetXorShiftSeed, pRandom->set_seed); POINTERS_EQUAL(NextXorShiftUint32, pRandom->get_next_uint32); RandomDelete(&pRandom); }