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!
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 meDonCallisto– DonCallisto2015-02-12 08:45:11 +00:00Commented Feb 12, 2015 at 8:45
Add a comment
|