Unit Testing

WP7 – Tombstoning simplified, less duplication

James Ashley posted a great tip on simplifying tombstoning by abstracting IsolatedStorageSettings.ApplicationSettings and PhoneApplicationService.Current.State to a common interface IDataStorage.  This makes storing either temporary state data or more permanent settings data much easier with less code. This was a very good post but the duplication on the two IDataStorage implementations made me cringe a little.  …

WP7 – Tombstoning simplified, less duplication Read 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 Silverlight Read More »