From 749fb9114888fc16068450cbcb3df16c4eb7705a Mon Sep 17 00:00:00 2001 From: Craig Fowler Date: Mon, 16 Dec 2024 09:31:30 +0000 Subject: [PATCH] Initial warning about cross-process marshalling This catches me out every darn time! I feel like it should be more obvious and pointed out. --- docs/articles/nunit/extending-nunit/Custom-Attributes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/articles/nunit/extending-nunit/Custom-Attributes.md b/docs/articles/nunit/extending-nunit/Custom-Attributes.md index f058607a9..39483c406 100644 --- a/docs/articles/nunit/extending-nunit/Custom-Attributes.md +++ b/docs/articles/nunit/extending-nunit/Custom-Attributes.md @@ -15,6 +15,10 @@ application, information about the tests may be returned for display, as is done The following interfaces are called at load time. +> [!WARNING] +> Parameter values injected into test methods by by an `ITestBuilder` are marshalled cross-process to the test execution process. +> This can cause unexpected behaviour if there are attempts to use that value outside of the test scope. + | Interface | Used By | |------------------------|---------| | [IFixtureBuilder](IFixtureBuilder-Interface.md) | Attributes that know how to build a fixture from a test class |