Adding UIPermissionAttribute to AttributesToAvoidReplicating used with Castle Dynamic Proxy.
To make it possible to substitute interfaces that exposes methods or properties that uses System.Windows.IDataObject.
This commit is contained in:
Родитель
5c40c7baa8
Коммит
5b480271e2
|
@ -103,6 +103,7 @@ namespace NSubstitute.Proxies.CastleDynamicProxy
|
|||
#if NET4
|
||||
AttributesToAvoidReplicating.Add<System.Runtime.InteropServices.TypeIdentifierAttribute>();
|
||||
#endif
|
||||
AttributesToAvoidReplicating.Add<UIPermissionAttribute>();
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче