コード例 #1
0
        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());
        }
コード例 #2
0
 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());
 }