Lines Matching refs:attributes

164             var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null);  in NoOperations_ShouldGenerateNoAttributes()
165 Assert.Equal(0, attributes.Count()); in NoOperations_ShouldGenerateNoAttributes()
167 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in NoOperations_ShouldGenerateNoAttributes()
168 Assert.Equal(0, attributes.Count()); in NoOperations_ShouldGenerateNoAttributes()
170 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in NoOperations_ShouldGenerateNoAttributes()
171 Assert.Equal(0, attributes.Count()); in NoOperations_ShouldGenerateNoAttributes()
173 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in NoOperations_ShouldGenerateNoAttributes()
174 Assert.Equal(0, attributes.Count()); in NoOperations_ShouldGenerateNoAttributes()
183 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in ExportSelf_ShouldGenerateSingleExportAttribute()
184 Assert.Equal(1, attributes.Count()); in ExportSelf_ShouldGenerateSingleExportAttribute()
185 Assert.NotNull(attributes[0] as ExportAttribute); in ExportSelf_ShouldGenerateSingleExportAttribute()
187 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in ExportSelf_ShouldGenerateSingleExportAttribute()
188 Assert.Equal(0, attributes.Count()); in ExportSelf_ShouldGenerateSingleExportAttribute()
190 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in ExportSelf_ShouldGenerateSingleExportAttribute()
191 Assert.Equal(0, attributes.Count()); in ExportSelf_ShouldGenerateSingleExportAttribute()
193 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in ExportSelf_ShouldGenerateSingleExportAttribute()
194 Assert.Equal(0, attributes.Count()); in ExportSelf_ShouldGenerateSingleExportAttribute()
203 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
205 Assert.Equal(1, attributes.Count()); in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
207 var exportAttribute = attributes[0] as ExportAttribute; in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
213 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
214 Assert.Equal(0, attributes.Count()); in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
216 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
217 Assert.Equal(0, attributes.Count()); in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
219 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
220 Assert.Equal(0, attributes.Count()); in ExportOfT_ShouldGenerateSingleExportAttributeWithContractType()
229 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in AddMetadata_ShouldGeneratePartMetadataAttribute()
230 Assert.Equal(2, attributes.Count()); in AddMetadata_ShouldGeneratePartMetadataAttribute()
232 …var exportAttribute = attributes.First((t) => t.GetType() == typeof(ExportAttribute)) as ExportAtt… in AddMetadata_ShouldGeneratePartMetadataAttribute()
236 …var mdAttribute = attributes.First((t) => t.GetType() == typeof(PartMetadataAttribute)) as PartMet… in AddMetadata_ShouldGeneratePartMetadataAttribute()
240 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in AddMetadata_ShouldGeneratePartMetadataAttribute()
241 Assert.Equal(0, attributes.Count()); in AddMetadata_ShouldGeneratePartMetadataAttribute()
243 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in AddMetadata_ShouldGeneratePartMetadataAttribute()
244 Assert.Equal(0, attributes.Count()); in AddMetadata_ShouldGeneratePartMetadataAttribute()
246 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in AddMetadata_ShouldGeneratePartMetadataAttribute()
247 Assert.Equal(0, attributes.Count()); in AddMetadata_ShouldGeneratePartMetadataAttribute()
256 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
257 Assert.Equal(2, attributes.Count()); in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
259 …var exportAttribute = attributes.First((t) => t.GetType() == typeof(ExportAttribute)) as ExportAtt… in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
263 …var mdAttribute = attributes.First((t) => t.GetType() == typeof(PartMetadataAttribute)) as PartMet… in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
267 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
268 Assert.Equal(0, attributes.Count()); in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
270 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
271 Assert.Equal(0, attributes.Count()); in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
273 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
274 Assert.Equal(0, attributes.Count()); in AddMetadataWithFunc_ShouldGeneratePartMetadataAttribute()
283 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in ExportProperty_ShouldGenerateExportForPropertySelected()
284 Assert.Equal(0, attributes.Count()); in ExportProperty_ShouldGenerateExportForPropertySelected()
286 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in ExportProperty_ShouldGenerateExportForPropertySelected()
287 Assert.Equal(1, attributes.Count()); in ExportProperty_ShouldGenerateExportForPropertySelected()
289 …var exportAttribute = attributes.First((t) => t.GetType() == typeof(ExportAttribute)) as ExportAtt… in ExportProperty_ShouldGenerateExportForPropertySelected()
293 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in ExportProperty_ShouldGenerateExportForPropertySelected()
294 Assert.Equal(0, attributes.Count()); in ExportProperty_ShouldGenerateExportForPropertySelected()
296 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in ExportProperty_ShouldGenerateExportForPropertySelected()
297 Assert.Equal(0, attributes.Count()); in ExportProperty_ShouldGenerateExportForPropertySelected()
306 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in ImportProperty_ShouldGenerateImportForPropertySelected()
307 Assert.Equal(0, attributes.Count()); in ImportProperty_ShouldGenerateImportForPropertySelected()
309 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in ImportProperty_ShouldGenerateImportForPropertySelected()
310 Assert.Equal(1, attributes.Count()); in ImportProperty_ShouldGenerateImportForPropertySelected()
312 …var importAttribute = attributes.First((t) => t.GetType() == typeof(ImportAttribute)) as ImportAtt… in ImportProperty_ShouldGenerateImportForPropertySelected()
315 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in ImportProperty_ShouldGenerateImportForPropertySelected()
316 Assert.Equal(0, attributes.Count()); in ImportProperty_ShouldGenerateImportForPropertySelected()
318 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in ImportProperty_ShouldGenerateImportForPropertySelected()
319 Assert.Equal(0, attributes.Count()); in ImportProperty_ShouldGenerateImportForPropertySelected()
328 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
329 Assert.Equal(0, attributes.Count()); in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
331 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
332 Assert.Equal(0, attributes.Count()); in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
334 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
335 Assert.Equal(0, attributes.Count()); in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
337 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
338 Assert.Equal(1, attributes.Count()); in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
340 …var importAttribute = attributes.First((t) => t.GetType() == typeof(ImportManyAttribute)) as Impor… in ImportProperties_ShouldGenerateImportForPropertySelected_And_ApplyImportMany()
350 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
351 Assert.Equal(0, attributes.Count()); in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
353 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
354 Assert.Equal(1, attributes.Count()); in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
356 …var exportAttribute = attributes.First((t) => t.GetType() == typeof(ExportAttribute)) as ExportAtt… in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
360 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
361 Assert.Equal(0, attributes.Count()); in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
363 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
364 Assert.Equal(0, attributes.Count()); in ExportPropertyWithConfiguration_ShouldGenerateExportForPropertySelected()
373 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
374 Assert.Equal(0, attributes.Count()); in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
376 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P1"); in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
377 Assert.Equal(1, attributes.Count()); in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
379 …var exportAttribute = attributes.First((t) => t.GetType() == typeof(ExportAttribute)) as ExportAtt… in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
383 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P2"); in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
384 Assert.Equal(0, attributes.Count()); in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
386 attributes = GetAttributesFromMember(builder, typeof(FooImpl), "P3"); in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
387 Assert.Equal(0, attributes.Count()); in ExportPropertyOfT_ShouldGenerateExportForPropertySelectedWithTAsContractType()
400 var attributes = GetAttributesFromMember(builder, typeof(FooImpl), null); in ConventionSelectsConstructor_SelectsTheOneWithMostParameters()
401 Assert.Equal(0, attributes.Count()); in ConventionSelectsConstructor_SelectsTheOneWithMostParameters()
417 var attributes = builder.GetDeclaredAttributes(typeof(FooImplWithConstructors), pi); in ManuallySelectingConstructor_SelectsTheExplicitOne()
418 Assert.Equal(1, attributes.Count()); in ManuallySelectingConstructor_SelectsTheExplicitOne()
419 Assert.NotNull(attributes[0] as ImportAttribute); in ManuallySelectingConstructor_SelectsTheExplicitOne()
421 attributes = GetAttributesFromMember(builder, typeof(FooImplWithConstructors), null); in ManuallySelectingConstructor_SelectsTheExplicitOne()
422 Assert.Equal(0, attributes.Count()); in ManuallySelectingConstructor_SelectsTheExplicitOne()
438 var attributes = builder.GetDeclaredAttributes(typeof(FooImplWithConstructors), pi); in ManuallySelectingConstructor_SelectsTheExplicitOne_IEnumerableParameterBecomesImportMany()
439 Assert.Equal(1, attributes.Count()); in ManuallySelectingConstructor_SelectsTheExplicitOne_IEnumerableParameterBecomesImportMany()
440 Assert.NotNull(attributes[0] as ImportManyAttribute); in ManuallySelectingConstructor_SelectsTheExplicitOne_IEnumerableParameterBecomesImportMany()
442 attributes = GetAttributesFromMember(builder, typeof(FooImplWithConstructors), null); in ManuallySelectingConstructor_SelectsTheExplicitOne_IEnumerableParameterBecomesImportMany()
443 Assert.Equal(0, attributes.Count()); in ManuallySelectingConstructor_SelectsTheExplicitOne_IEnumerableParameterBecomesImportMany()