I am working on a feature that will let me import twitter messages to yonkly and wanted to write a test for it. The method is private and I couldn’t get the unit test to see it. I also didn’t want to use the private accessor class generate by Visual Studio because I was mocking […]
Unit Test Private Methods in Visual Studio
July 9, 2008
Unit Test Linq to Sql in ASP.Net MVC with Moq
April 4, 2008
I have just spent the entire day playing with Moq to unit test an asp.net mvc application I am working with. All I wanted to do is test a “create” method that simply adds a record to the database. So here it goes.
1. I created a Mock Http context to be used by my controller. […]
Posted in
content rss
