A feature I would really like to see to assist with using JustMock is a way of setting up unit tests far more easily.
In my situation I am dealing with calls from a silverlight client that are passing collections of objects created originally by linq to sql. All the examples show using JustMock for testing of very simple methods - currency conversion etc. While I realise there is no limit to the complexity of what can be setup, it is very difficult to set these types of parameters up by hand.
What I would really like is a way to hit a breakpoint in my code, and then be able to select "JustMock This" off a menu somehow.
This would clone the current arguments into a repeatable test. I wouldnt care if the clone was done in code, or the arguments were persisted in some way. I just dont want to have to recreate them all by hand.
It would open the door not just to simplified set up of unit tests, it would also be a powerful debugging tool as well, as sometimes the operations to get to a bug can be complex, and it is a real pain to keep going through the motions just to get back to the same method again.
If there is a way of doing all this with the existing product, please let me know how. If not, what do you think of this as a feature?
Tom
In my situation I am dealing with calls from a silverlight client that are passing collections of objects created originally by linq to sql. All the examples show using JustMock for testing of very simple methods - currency conversion etc. While I realise there is no limit to the complexity of what can be setup, it is very difficult to set these types of parameters up by hand.
What I would really like is a way to hit a breakpoint in my code, and then be able to select "JustMock This" off a menu somehow.
This would clone the current arguments into a repeatable test. I wouldnt care if the clone was done in code, or the arguments were persisted in some way. I just dont want to have to recreate them all by hand.
It would open the door not just to simplified set up of unit tests, it would also be a powerful debugging tool as well, as sometimes the operations to get to a bug can be complex, and it is a real pain to keep going through the motions just to get back to the same method again.
If there is a way of doing all this with the existing product, please let me know how. If not, what do you think of this as a feature?
Tom