I have command what purge some storage. I want to test this command. But when I use the CommandTester, it realy purge the storage, I just only to test command not run it. I pretty new in app testing(unit-testing). So I need to somehow mock command object or do like described here in second answer(option two)? Can somebody help me? Thanks!
Asked
Active
Viewed 73 times
1
-
2When you want to do this kind of isolation, you need to mock your object. I can't provide further help as I'm new too unit-tesing but for what I've seen I'm pretty sure this is the way. Hope someone could be more precise than me – DonCallisto Feb 12 '15 at 08:45