示例#1
0
        public void TestSkipWhile()
        {
            IEnumerable <int> actual   = Partitioning.SkipWhile();
            IEnumerable <int> expected = new int[] { 3, 9, 8, 6, 7, 2, 0 };

            CollectionAssert.AreEqual(actual.ToList(), expected.ToList(), "You failed!");
        }
        public void Partitioning_SkipWhile()
        {
            // Arrange
            List <string> words = new List <string> {
                "one", "two", "three", "four", "five", "six"
            };

            // Act
            var result = _partitioning.SkipWhile(words);

            // Assert
            Assert.True(result.Count == 4);
        }