Exemplo n.º 1
0
        public TestClassElement(TestProvider provider, ProjectModelElementEnvoy projectModelElementEnvoy, DeclaredElementProvider declaredElementProvider, string id, IClrTypeName typeName, string assemblyLocation)
            : base(provider, typeName, assemblyLocation, null, id, projectModelElementEnvoy)
        {
            this.declaredElementProvider = declaredElementProvider;

            ShortName = string.Join("+", typeName.TypeNames.Select(FormatTypeName).ToArray());
        }
        public TestMethodElement(TestProvider provider, IUnitTestElement parent, ProjectModelElementEnvoy projectModelElementEnvoy,
            DeclaredElementProvider declaredElementProvider, string id, IClrTypeName typeName, string methodName, string assemblyLocation, bool isParameterized)
            : base(provider, typeName, assemblyLocation, parent, id, projectModelElementEnvoy)
        {
            this.declaredElementProvider = declaredElementProvider;
            this.methodName = methodName;
            IsParameterized = isParameterized;

            ShortName = methodName;
            presentation = string.Format("{0}.{1}", typeName.ShortName, methodName);
        }
        public TestMethodElement(TestProvider provider, IUnitTestElement parent, ProjectModelElementEnvoy projectModelElementEnvoy,
                                 DeclaredElementProvider declaredElementProvider, string id, IClrTypeName typeName, string methodName, string assemblyLocation, bool isParameterized)
            : base(provider, typeName, assemblyLocation, parent, id, projectModelElementEnvoy)
        {
            this.declaredElementProvider = declaredElementProvider;
            this.methodName = methodName;
            IsParameterized = isParameterized;

            ShortName    = methodName;
            presentation = string.Format("{0}.{1}", typeName.ShortName, methodName);
        }
Exemplo n.º 4
0
 public UnitTestElementFactory(TestProvider provider, UnitTestElementManager unitTestManager, DeclaredElementProvider declaredElementProvider)
 {
     this.provider                = provider;
     this.unitTestManager         = unitTestManager;
     this.declaredElementProvider = declaredElementProvider;
 }
 public UnitTestElementFactory(TestProvider provider, UnitTestElementManager unitTestManager, DeclaredElementProvider declaredElementProvider)
 {
     this.provider = provider;
     this.unitTestManager = unitTestManager;
     this.declaredElementProvider = declaredElementProvider;
 }