Writing a unit test for a method that uses a DataContext object

Jun 5, 2012 at 2:27 PM

I have created a CodeActivity that I'm trying to unit test. I am able to test the Execute method fine, but I want to be able to test some of the lower methods. Some of these make use of the DataContext object to get values for properties that are set in the workflow. 

Is there an example on how I can test a method outside of the Exceute method that needs a DataContext object?