One of the benefits of adopting WPF Attached Behaviour to adding a dynamic behaviour to WPF controls is that you could unit test the implementation and still use MVVM. The idea of this post is to demonstrate how to setup and run tests for a attached behaviours. This testing is for the implementation covered in an…