c# Unit test for importing database using smo and checking sql connection

How can I implement a unit test for database transfer from remote server into localhost using smo. Also is it possible to test the sql connection? I don’t have so much experience in Moq , NUnit. Any recommendations are highly appreciated.