Open SergeyTeplyakov opened 10 years ago
Please consider the following scenario (tested and working):
Now the static checker will work as expected, thanks to the Contracts reference assembly augmented with standard Contract.Require calls. Otherwise you'll get weird warnings by the tool.
IMHO this enhancement should be removed or I should be able to selectively disable it.. Thanx
I believe that I didn't implement this enhancement yet. When I'll start working on it, I'll definitely will consider your suggestion.
Custom contract validators (methods marked with
ContractArgumentValidator
) should not contains any other calls of theContract
class except the call to theContract.EndContractBlock
:Actually as part of this issue all other rules of the custom validators should be considered.