ppittle / pMixins

pMixins - Mixin framework for C#
http://pMixins.com
Apache License 2.0
23 stars 5 forks source link

When pMixin.Masks is specified inherited interfaces should be filtered as well #23

Closed ppittle closed 10 years ago

ppittle commented 10 years ago

Example:

interface I1{}

interface I2{}

class Mixin : I1, I2{}

[pMixin(Mixin = typeof(Mixin), Masks = new []{typeof(I1)})]
partial class Target{}

Test

Assert.IsFalse(new Target() is I2);
ppittle commented 10 years ago

Fixed