In my code I am using AppDomain.CurrentDomain.BaseDirectory call.
In my unit test I want to fake this call, so it will always return same value for BaseDirectory property.
However, after generating fake assembly for System I can't see ShimAppDomain in my unit test. Is it becasue AppDomain is sealed class?
How can I isolate my test from AppDomain.CurrentDomain.BaseDirectory call?
Aucun commentaire:
Enregistrer un commentaire