I work in a TDD shop and we are willing to use your framework for our webcontrol development and winform.
First, we just wanna say that it works pretty well and we have really high tests coverage since we use it. But, we had a little problem testing this:
Task.TasksManager.StartTask(GetType(...), New Object() {..., Task})
We are enable to mock the Task, but we cant mock the tasksManager because it don't implements any interface. We just wanna mock it to verify that StartTask function is really call with good argument.
It will be useful to add an interface in tasksManager to avoid this situation. We had a few situation like this in our development, but we just wanna know if there might be some interest on knowing them and getting comment on suggestion on some "hard test writing" we had.
Thx!
PS Sorry for my writing, I'm french... :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the suggestion! To solve this issue, in the next release I'm going to mark the TasksManager.StartTask(..) method as virtual. Will it be an acceptable solution?
I appreciate much the TDD approach and will do my best to make MVC# support it in greater extent. Please report other problems you're having while using MVC# in your TDD environment.
Thanks much!
--
Oleg Zhukov
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I work in a TDD shop and we are willing to use your framework for our webcontrol development and winform.
First, we just wanna say that it works pretty well and we have really high tests coverage since we use it. But, we had a little problem testing this:
Task.TasksManager.StartTask(GetType(...), New Object() {..., Task})
We are enable to mock the Task, but we cant mock the tasksManager because it don't implements any interface. We just wanna mock it to verify that StartTask function is really call with good argument.
It will be useful to add an interface in tasksManager to avoid this situation. We had a few situation like this in our development, but we just wanna know if there might be some interest on knowing them and getting comment on suggestion on some "hard test writing" we had.
Thx!
PS Sorry for my writing, I'm french... :-)
Hi,
Thanks for the suggestion! To solve this issue, in the next release I'm going to mark the TasksManager.StartTask(..) method as virtual. Will it be an acceptable solution?
I appreciate much the TDD approach and will do my best to make MVC# support it in greater extent. Please report other problems you're having while using MVC# in your TDD environment.
Thanks much!
--
Oleg Zhukov