A A
RSS

Tag Archive | "unit testing"

Unit Test Private Methods in Visual Studio

Wednesday, July 9, 2008

Comments

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

Friday, April 4, 2008

Comments

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

Advertise Here

What I'm Doing...

Yonkly Open Source

Sign up for my newsletter

powered by MailChimp!

Cyber Identity