public UnitTestTask CreateContextTask(ContextElement context) { return new UnitTestTask(context, new ContextTask(this._providerId, context.AssemblyLocation, context.GetTypeClrName().FullName)); }
public UnitTestTask CreateContextTask(ContextElement context) { return(new UnitTestTask(context, new ContextTask(_providerId, context.AssemblyLocation, context.GetTypeClrName().FullName))); }
public UnitTestTask CreateContextTask(ContextElement context, bool isExplicit) { return(new UnitTestTask(context, new ContextTask(_providerId, context.AssemblyLocation, context.GetTypeClrName(), false))); }
public UnitTestTask CreateContextSpecificationTask(ContextElement context, ContextSpecificationElement contextSpecification) { return(new UnitTestTask(contextSpecification, new ContextSpecificationTask(_providerId, context.AssemblyLocation, context.GetTypeClrName().FullName, contextSpecification.FieldName))); }
public UnitTestTask CreateBehaviorTask(ContextElement context, BehaviorElement behavior, bool isExplicit) { return(new UnitTestTask(behavior, new BehaviorTask(_providerId, context.AssemblyLocation, context.GetTypeClrName(), behavior.FieldName, false))); }
public UnitTestTask CreateContextSpecificationTask(ContextElement context, ContextSpecificationElement contextSpecification) { return new UnitTestTask(contextSpecification, new ContextSpecificationTask(this._providerId, context.AssemblyLocation, context.GetTypeClrName().FullName, contextSpecification.FieldName)); }
public UnitTestTask CreateBehaviorSpecificationTask(ContextElement context, BehaviorSpecificationElement behaviorSpecification) { return(new UnitTestTask(behaviorSpecification, new BehaviorSpecificationTask(_providerId, context.AssemblyLocation, context.GetTypeClrName().FullName, behaviorSpecification.Behavior.FieldName, behaviorSpecification.FieldName, behaviorSpecification.Behavior.FieldType))); }
public UnitTestTask CreateBehaviorSpecificationTask(ContextElement context, BehaviorSpecificationElement behaviorSpecification) { return new UnitTestTask(behaviorSpecification, new BehaviorSpecificationTask(this._providerId, context.AssemblyLocation, context.GetTypeClrName().FullName, behaviorSpecification.Behavior.FieldName, behaviorSpecification.FieldName, behaviorSpecification.Behavior.FieldType)); }
public BehaviorElement CreateBehavior(ContextElement context, IMetadataField behavior) { var typeContainingBehaviorSpecifications = behavior.GetFirstGenericArgument(); var metadataTypeName = behavior.FirstGenericArgumentClass().FullyQualifiedName(); var fieldType = new NormalizedTypeName(metadataTypeName); var behaviorElement = this.GetOrCreateBehavior(context, context.GetTypeClrName(), behavior.Name, behavior.IsIgnored() || typeContainingBehaviorSpecifications.IsIgnored(), fieldType); return(behaviorElement); }