public void Transverse() { var TestObject = new TraverseClass { Children = new TraverseClass[] { new TraverseClass(), new TraverseClass(), new TraverseClass(), new TraverseClass() }.ToList() }; Assert.Equal(5, TestObject.Transverse(x => x.Children).Count()); }
public void Transverse() { var TestObject = new TraverseClass() { Children = new TraverseClass[] { new TraverseClass(), new TraverseClass(), new TraverseClass(), new TraverseClass() }.ToList() }; Assert.Equal(5, TestObject.Transverse(x => x.Children).Count()); }