Entries Categorized as 'Testing'

Unit Test Private Methods in Visual Studio

Date July 9, 2008

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 Linq to Sql in ASP.Net MVC with Moq

Date 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. […]

Close
E-mail It