예제 #1
0
        public void CartesianProduct_SequencesIsNull_ThrowsException()
        {
            var sequences = (IEnumerable <IEnumerable <string> >)null;

            var result = Should.Throw <ArgumentNullException>(() =>
            {
                EnumerableExtensions.CartesianProduct(sequences);
            });

            result.ParamName.ShouldBe(nameof(sequences));
        }