Baseline.Testing.GenericEnumerableExtensionsTester.remove_all C# (CSharp) Метод

remove_all() приватный Метод

private remove_all ( ) : void
Результат void
        public void remove_all()
        {
            var list = new List<string> { "a", "c", "b" };
            list.Count().ShouldBe(3);
            Func<string, bool> whereEvaluator = item => item.CompareTo("c") < 0;
            list.RemoveAll(whereEvaluator);
            list.Count().ShouldBe(1);
            list.ShouldContain("c");
        }