I have a sql statement i.e select x, y, z from T and this query gives me list of results.
My goal is to write a unit test if this query results list or fails to retrieve from database if change in environments. I'm new to unit test and unaware if I can open and close connection.
Let me know if someone can help me on this.