END_TEST START_TEST (test_L3_Event_hasRequiredAttributes ) { Event_t *e = Event_create (3, 1); fail_unless ( !Event_hasRequiredAttributes(e)); Event_setUseValuesFromTriggerTime(e, 1); fail_unless ( Event_hasRequiredAttributes(e)); Event_free(e); }
END_TEST START_TEST (test_SBMLConvert_convertToL3_event) { SBMLDocument_t *d = SBMLDocument_createWithLevelAndVersion(2, 2); Model_t *m = SBMLDocument_createModel(d); Event_t *e = Model_createEvent(m); Event_t *e1; fail_unless( SBMLDocument_setLevelAndVersionNonStrict(d, 3, 1) == 1, NULL); e1 = Model_getEvent(m, 0); fail_unless(Event_hasRequiredAttributes(e1) == 1); SBMLDocument_free(d); }