private static ExportMetadataAttribute GetExportMetadataAttribute(ExportBuilder builder) { var list = new List <Attribute>(); builder.BuildAttributes(typeof(FooImpl), ref list); Assert.AreEqual(2, list.Count); return(list[1] as ExportMetadataAttribute); }
public void Inherited_AddsInheritedExportAttribute() { var builder = new ExportBuilder(); builder.Inherited(); var list = new List <Attribute>(); builder.BuildAttributes(typeof(FooImpl), ref list); Assert.Equal(1, list.Count); var att = list[0] as InheritedExportAttribute; Assert.NotNull(att); }