Google-Apps
Hauptmenü

Post a Comment On: the urban canuk, eh

"Unit Test Review Checklist"

2 Comments -

1 – 2 of 2
Blogger Kyle Szklenski said...

Does the test test the IoC container more than the functional piece of code to test?

10:50 AM

Blogger bryan said...

Hey Kyle,

You and I are both painfully aware of the frustrations of IoC containers and their impact to the tests.

My preference is to decouple my code from the IoC framework so that the tests do not need to concern themselves about how the subject was constructed.

If your tests are testing features of the container, that's better served as a unit test for the container. I think this is implied in "isolating responsibilities of the subject".

12:38 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot