Exemple #1
0
        public void TestSlicer_Exception()
        {
            var slicer = new Slicer <int>(new [] { 0, 1, 2, 3, 4 });

            slicer.NextSlice(5);
            slicer.NextSlice(5);
        }
 public void TestSlicer()
 {
     var slicer = new Slicer<int>(new []{0, 1, 2, 3, 4, 5, 6, 7, 8, 9});
       var a = slicer.NextSlice(5);
       var b = slicer.NextSlice(5);
       Assert.IsTrue(a.SequenceEqual(new []{0, 1, 2, 3, 4}));
       Assert.IsTrue(b.SequenceEqual(new []{5, 6, 7, 8, 9}));
 }
Exemple #3
0
        public void TestSlicer()
        {
            var slicer = new Slicer <int>(new [] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 });
            var a      = slicer.NextSlice(5);
            var b      = slicer.NextSlice(5);

            Assert.IsTrue(a.SequenceEqual(new [] { 0, 1, 2, 3, 4 }));
            Assert.IsTrue(b.SequenceEqual(new [] { 5, 6, 7, 8, 9 }));
        }
 public void TestSlicer_Exception()
 {
     var slicer = new Slicer<int>(new []{0, 1, 2, 3, 4});
       slicer.NextSlice(5);
       slicer.NextSlice(5);
 }