Esempio n. 1
0
        public static ExtendedCollectionSubsetConstraint ExSubsetOf <T>(this ConstraintExpression expression, IObservable <T> expected)
        {
            var constraint = new ExtendedCollectionSubsetConstraint(expected.ToEnumerable());

            expression.Append(constraint);
            return(constraint);
        }
Esempio n. 2
0
        public static ExtendedCollectionSubsetConstraint ExSubsetOf(this ConstraintExpression expression, IEnumerable expected)
        {
            var constraint = new ExtendedCollectionSubsetConstraint(expected);

            expression.Append(constraint);
            return(constraint);
        }