Esempio n. 1
0
        public void TestTake()
        {
            IEnumerable <int> actual   = Partitioning.Take();
            IEnumerable <int> expected = new int[] { 5, 4, 1 };

            CollectionAssert.AreEqual(actual.ToList(), expected.ToList(), "You failed!");
        }
Esempio n. 2
0
        public void Partitioning_Take()
        {
            // Arrange
            List <int> numbers = new List <int> {
                1, 2, 3, 4, 5, 6, 7, 8, 9, 10
            };

            // Act
            var result = _partitioning.Take(numbers);

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