Пример #1
0
        public void TestSkipNulls()
        {
            var skipNulls = J.SkipNulls();

            CheckNoOutput(skipNulls, ITERABLE_);
            CheckNoOutput(skipNulls, ITERABLE_NULL);
            CheckNoOutput(skipNulls, ITERABLE_NULL_NULL);
            CheckNoOutput(skipNulls, ITERABLE_FOUR_NULLS);
            CheckResult(skipNulls, ITERABLE_1, "1");
            CheckResult(skipNulls, ITERABLE_12, "1-2");
            CheckResult(skipNulls, ITERABLE_123, "1-2-3");
            CheckResult(skipNulls, ITERABLE_NULL_1, "1");
            CheckResult(skipNulls, ITERABLE_1_NULL, "1");
            CheckResult(skipNulls, ITERABLE_1_NULL_2, "1-2");
        }