Ejemplo n.º 1
0
 internal CollectionHandler(TCollection collection, ContractVerificationContext context)
 {
     this.collection = collection;
     this.CountTrack = collection.Count;
     this.context    = context;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 4
0
 /// <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);
 }