August 2008 - Posts

0
Comments

ASP.NET Tips: DropDownList.ClearSelection() to avoid "Cannot have multiple items selected in DropDownList" by shahed

Problem I was facing the following Exception when I was programmatically assigning Selected Value of a DropDownList with the following piece of code. ListItem item = DropDownListTest.Items.FindByValue("Test"); if (item != null) item.Selected...
0
Comments

Reflection Tips: Generate Mock objects for Test Cases. by shahed

Filling up Mock objects with random data is possibly one of the most time consuming and boring chapter of writing test cases. Let say we have the following classes and we want to write some mock objects. Mock Object Code Example private Client GetMockClient...
Powered by Community Server (Commercial Edition), by Telligent Systems