Discover the NodeCollection ToArray method, effortlessly convert your node collection into a new array, enhancing data management and accessibility.... Count ( s => s . ShapeType == ShapeType...)); Assert . That ( shapes . Count ( s => s . ShapeType == ShapeType...