Hi,

I am trying to take a screenshot whenever a test fails. I am using the 
setup below: 
Unfortunately this always returns "passed" when I try the following:if 
(TestContext.CurrentContext.
IsTriggeredEventSatisfied(TriggerEvent.TestFailed))


 [Test]
        [Parallelizable]
        [Description ("Change password and change it back")]
        [Row("nl")]
        [Row("fr")]
       
        public void Test(string locale)
        {
            
             try
             {
                 // do something
             }
             finally
             {
               
                    //if failed, take screenshot
             }
        }

any tips / hints would be great

thanks a lot!

-- 
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/mbunituser/-/ESKEBiCM9G8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en.

Reply via email to