"I didn't know you attended UNC" is better. You can use this whether or not the person is still going there. In conversation, most people would say "went to" rather than "attended".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.