Blacksmith.Tests.BlacksmithExtensionMethodTests.Can_iterate_over_a_collection C# (CSharp) Method

Can_iterate_over_a_collection() private method

private Can_iterate_over_a_collection ( ) : void
return void
        public void Can_iterate_over_a_collection()
        {
            var items = new[] { 1, 1, 1, 1, 1 };
            var sum = 0;
            items.ForEach(x => sum = sum + x );
            sum.Should().Be(5);
        }