Ask Your Question
4

If there are multiple methods with the [OneTimeTearDown] test hook in NUnit, is it possible to specify their order?

asked 2021-05-22 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-07-15 05:00:00 +0000

scrum gravatar image

No, it is not possible to specify the order of execution for multiple methods with the [OneTimeTearDown] test hook in NUnit. The methods are executed in an undefined order. It is recommended to only use one [OneTimeTearDown] method for each test fixture to avoid any issues related to the order of execution.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-22 11:00:00 +0000

Seen: 11 times

Last updated: Jul 15 '22