Spectator::ContextDelegate
Inherits Struct / Value / Object
Stores a test context and a method to call within it.
Constructors
new(context : Context, method : ContextMethod)
Creates the delegate. The context is the instance of the test context. The method is proc that downcasts context and calls a method on it.
Class methods
null
Creates a delegate with a null context. The context will be ignored and the block will be executed in its original scope.