public void DocumentQuery_Tap_Will_Execute_The_Given_Action() { var sut = new DocumentQuery <TreeNode>(); var action = Substitute.For <Action <DocumentQuery <TreeNode> > >(); var result = sut.Tap(action); action.ReceivedCalls().Should().HaveCount(1); }