System.Linq.Tests.SelectTests.SameResultsRepeatCallsStringQuery C# (CSharp) Méthode

SameResultsRepeatCallsStringQuery() private méthode

private SameResultsRepeatCallsStringQuery ( ) : void
Résultat void
        public void SameResultsRepeatCallsStringQuery()
        {
            var q1 = from x1 in new string[] { "Alen", "Felix", null, null, "X", "Have Space", "Clinton", "" }
                     select x1; ;

            var q2 = from x2 in new int[] { 55, 49, 9, -100, 24, 25, -1, 0 }
                     select x2;

            var q = from x3 in q1
                    from x4 in q2
                    select new { a1 = x3, a2 = x4 };

            Assert.Equal(q.Select(e => e.a1), q.Select(e => e.a1));
        }
SelectTests