internal CollectionHandler(TCollection collection, ContractVerificationContext context) { this.collection = collection; this.CountTrack = collection.Count; this.context = context; }
internal ListHandler(TList list, ContractVerificationContext context) : base(list, context) { }
public void ConstructorOk() { var mockCodeElement = MockRepository.GenerateStub<ICodeElementInfo>(); var context = new ContractVerificationContext(mockCodeElement); Assert.AreSame(mockCodeElement, context.CodeElement); }
/// <inheritdoc /> public IEnumerable<Test> GetContractVerificationTests(ContractVerificationContext context) { this.Context = context; return GetContractVerificationTests(); }
private static IEnumerable<Test> GetContractVerificationTests(IContract contract, IFieldInfo field) { var context = new ContractVerificationContext(field); return contract.GetContractVerificationTests(context); }