Good question, would like to hear some other thoughts, but my thinking goes like this...
If the rock has been kept at an appropriate salinity/SG (say 1.020-1.025), and an appropriate temperature (probably between 65 and 85F) and there has been water movement (incl oxygen, meaning the cooler hasn't been CLOSED) and some kind of waste in the tank for it to process and water changes done then the rock would probably be wonderful. Darkness shouldn't matter one way or the other if its just live rock. If one of those things is missing...I dont know how resilient LR is.
I suppose the best test would be to do water tests and see if the nitrates are way way high or anything...and then put a little bit of ammonia into the tank and see if the rock processes it into nitrates.