I’m using Gallio/MbUnit with WatiN and I have a defined method to executes as TearDown, what I need is a way to skip the TearDown from a specific Test Case, is that possible?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe there is a way to skip the TearDown method for a particular test method. I ran into a similar need with MBUnit, so what I did instead, was removed the SetUp and TearDown methods. I then created a factory class that would do the needed SetUp/Teardown for me utilizing a “using” statement. Example:
In this case, I use the factory IntegrationUtil to get an object instance of a folder, and things get cleaned up after the “using” brackets. This test was pulled out of an MBUnit test class which did not have any Setup/TearDown methods included.
Hope this helps.