unit test an attached behavior wpf
I am still grokking attached behaviors in general, and am at a loss to see how to write a unit test for one. I pasted some code below from Sacha Barber's Cinch framework that allows a window to be closed via attached behavior. Can somewone show me an example unit test for it? Thanks! Berryl #region Close /// <summary>Dependency property which holds the ICommand for the Close event</summary> public static readonly DependencyProperty CloseProperty = DependencyProperty.RegisterAttached("Close", typeof(ICommand), typeof(Lifetime), new UIPropertyMetadata(null, OnCloseEventInfoChanged)); ///