Class TestOnlyAttribute
Marks a doubles type or member the game does not have: a test switch, a recorder or a fixture shorthand. Mod code that calls one compiles against the doubles and fails against the game. The doubles' tests refuse an unmarked member the game lacks and a marked one it has (docs/packages/Valheim.Testing.Doubles.members.txt lists both).
[AttributeUsage(AttributeTargets.All, Inherited = false)]
public sealed class TestOnlyAttribute : Attribute
- Inheritance
-
objectAttributeTestOnlyAttribute