internal ContractEnsures(ICSharpStatement statement, PredicateExpression predicateExpression, Message message) 
     : base(statement, predicateExpression, message)
 {
     _contractResultArgument =
         predicateExpression.Predicates.Select(p => p.Argument)
             .OfType<ContractResultPredicateArgument>()
             .FirstOrDefault();
 }
Ejemplo n.º 2
0
 internal ContractEnsures(ICSharpStatement statement, PredicateExpression predicateExpression, Message message)
     : base(statement, predicateExpression, message)
 {
     _contractResultArgument =
         predicateExpression.Predicates.Select(p => p.Argument)
         .OfType <ContractResultPredicateArgument>()
         .FirstOrDefault();
 }