TDD

C# Unit Testing: Incrementally Improve Testability

Consider a seasoned brownfield (legacy or seasoned project; not new development) project with little to no unit tests. How and where do you start unit testing?  Should you stop all forward development and refactor the entire solution at once to be testable?  Probably not. Most brown field projects were not developed with testing in mind …

C# Unit Testing: Incrementally Improve TestabilityRead More »

Unit Testing the Setting of MediaElementState in Silverlight

I recently had the need to change the state of a MediaElement to coincide with other page functionality.  You can easily change the state of a MediaElement from the code-behind but you can’t unit test this.  At first I thought, it would be easy to just bind the CurrentState property to a ViewModel property but …

Unit Testing the Setting of MediaElementState in SilverlightRead More »