Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }