Attribute to skip over statement in unit test c#
Posted
by Eli Perpinyal
on Stack Overflow
See other posts from Stack Overflow
or by Eli Perpinyal
Published on 2010-04-21T14:37:00Z
Indexed on
2010/04/21
14:43 UTC
Read the original article
Hit count: 227
c#
|unit-testing
I am looking to skip a certain statement in my unit tests eg:
if (MessageBox.Show("Are you sure you want to remove " + contact.CompanyName + " from the contacts?", "Confirm Delete", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.Yes) == MessageBoxResult.Yes)
is there an attribute i can place above the statement to avoid the unit test executing it?
© Stack Overflow or respective owner