• Unit Test Private Methods in Visual Studio

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

  • ASP.NET, ASP.NET MVC, Testing

    Posted on April 4th, 2008

    Written by Emad Ibrahim

    Tags

    , , , , , , , ,

    Unit Test Linq to Sql in ASP.Net MVC with Moq

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