public void SelectDepthFirst_ChildrenSelectorNull () { var root = new TreeNode<int>[0]; Func<TreeNode<int>, IEnumerable<TreeNode<int>>> childrenSelector = null; root.SelectDepthFirst (x => x.Value, childrenSelector); }