Accessing Non-Public Member of Abstract Base Classes in Unit Tests

Given you have an abstract base class with non-public member, and a derived class with other non-public member too. Now you want to unit-test some of the non-public member (methods) of the derived class. Prior the call of the method of the derived class, you need to set some non-public …

Disable Control-Buttons of RadGridView

Using Telerik’s RadGridView, one can connect the add, update, cancel and delete command to RadButtons by setting the Command=”telerik:RadGridViewCommands….” properties of the buttons and link to the grid by setting the CommandTarget=”{Binding ElementName=GridViewName}” property. For some reasons, I needed to disable the buttons, depending on the rights the currently logged …

Silverlight Unit Test Headwords

At the time of writing, creating unit tests for Silverlight is not as smooth and easy as it is for .NET assemblies. My experiences base on the Silverlight toolkit published on Codeplex silverlight.codeplex.com. You cannot access private or protected methods or properties. So use the #if DEBUG to make these …