docs
docs copied to clipboard
TestContext documentation seems either outdated or just missing stuff
- See https://docs.nunit.org/articles/nunit/writing-tests/TestContext.html#testparameters The correct property name is is TestContext.Parameters, the TestParameters is the type.
- There are more properties that are not documented, see https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/TestContext.cs , e.g. TestAdapter, ResultAdapter and more.
See https://docs.nunit.org/articles/nunit/writing-tests/TestContext.html#testparameters The correct property name is is TestContext.Parameters, the TestParameters is the type.
I just came across this too, I had no idea how to get around it, but luckily I found a blog post
I this TestContext.Test.Properties
should also be updated. It is currently described as an IPropertyBag
but this was changed in 3.10 as part of https://github.com/nunit/nunit/issues/1578. A question was just asked in the framework repo (https://github.com/nunit/nunit/issues/4059) about it
Just putting it out there that this is likely part of a larger issue -- the docfx docs are separate from the codebase and are manually maintained.
Docfx allows (and is indeed designed for) generating docs from the codebase. Perhaps it's time to look at what our options might be there.