vendredi 4 mai 2018

Create WindowCollection programmatically

I have something like this:

foreach (Window w in Application.Current.Windows)
{
//Do something
}

I am trying to write a unit test for this. How can I create a WindowCollection object that has Window objects ? Please provide some guidance. Thanks.

Aucun commentaire:

Enregistrer un commentaire