Beispiel #1
0
        public void Example1()
        {
            var array = new[] { "a", "b", "c" };

            Assert.Equal(new[]{
                "a", "b", "c"
            }, array.Cycle(1).ToArray());
            Assert.Equal(new[]{
                "a", "b", "c",
                "a", "b", "c"
            }, array.Cycle(2).ToArray());
        }
Beispiel #2
0
        public void Example2()
        {
            var array = new[] { "a", "b", "c" };

            Assert.Equal(new[]{
                "a", "b", "c",
                "a", "b", "c",
                "a"
            }, array.Cycle(null).Take(7).ToArray());
        }