public void HandleItMethodCall(string description, Action func) { if (_runtimeContext.TestsExecuting) { return; } var newItBlock = new ItBlock(description, func) { ParentDescribeBlock = _currentDescribeBlock }; _currentDescribeBlock.ChildItBlocks.Add(newItBlock); }
public ExecutableSpec(ItBlock itBlock) { _itBlock = itBlock; }