1

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
  • 2
    When 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 Commented Feb 12, 2015 at 8:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.