コード例 #1
0
        public void Distinct_With_ValidData_Must_Succeed(int[] source)
        {
            // Arrange
            var wrapped  = Wrap.AsValueReadOnlyList(source);
            var expected =
                System.Linq.Enumerable.Distinct(wrapped);

            // Act
            var result = ReadOnlyList
                         .Distinct <Wrap.ValueReadOnlyList <int>, int>(wrapped);

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