Пример #1
0
        public void ToList_With_ValidData_Collections_Must_Succeed(int[] source)
        {
            // Arrange
            var wrapped = Wrap
                          .AsValueCollection(source);
            var expected =
                System.Linq.Enumerable.ToList(source);

            // Act
            var result = ValueEnumerable
                         .ToList <Wrap.ValueCollection <int>, Wrap.Enumerator <int>, int>(wrapped);

            // Assert
            _ = result.Must()
                .BeOfType <List <int> >()
                .BeEnumerableOf <int>()
                .BeEqualTo(expected);
        }