Is it even possible?
So far, I found that we can buy TypeMock to mock the SharePoint objects and then use any free Mocking framework (Moq?) to do the rest of the job.
What do you think?
It seams that without TypeMock, it's impossible to do unit test within SharePoint.
To properly test our events, we need to give the event a SPItemEventProperties. The class is sealed and have an internal constructor that require a SPSite.
If I use the SPSite I can instantiate the class and give the proper values to test for my event. However, I want to remove that dependency and TypeMock seams to be the only one able to do that.
Any way around it?