ios - static data validation done at runtime or through test cases
===

I have an iOS project which has static data (around 500 entries)

This static data is added while developing and this static data will NOT change at run time. From time to time I tend to add more static data (hardcode it)

I would like to perform some validations (such as checking duplicate entries and other sanity checks).

Should I do this validation checks during the execution of the program or should I do these checks as part of the test cases.

Note - I am using XCode.