Akka.Streams.Tests.Dsl.FlowWhereSpec.A_FilterNot_must_filter_based_on_inverted_predicate C# (CSharp) Method

A_FilterNot_must_filter_based_on_inverted_predicate() private method

        public void A_FilterNot_must_filter_based_on_inverted_predicate()
        {
            var random = new Random();
            Script<int, int> script = Script.Create(RandomTestRange(Sys).Select(_ =>
            {
                var x = random.Next();
                return new Tuple<ICollection<int>, ICollection<int>>(new[] { x }, (x & 1) == 1 ? new[] { x } : new int[] { });
            }).ToArray());

            RandomTestRange(Sys).ForEach(_ => RunScript(script, Settings, flow => flow.WhereNot(x => x % 2 == 0)));
        }
    }