Using Moles with System.Reflection

I'm trying to mole the Assembly.GetEntryAssembly method, but it seems that only stub types are generated for the System.Reflection namespace, i.e. System.Reflection.Moles.SAssembly is created, but not System.Reflection.Moles.Messembly.

I checked, and another System.Resource namespace has both a stub type and a runtime, for example. both System.Resources.Moles.SIResourceWriter and System.Resources.Moles.MResourceWriter are available.

Any knowledge of this particular problem would be wonderful.

+4
source share

Source: https://habr.com/ru/post/1333844/


All Articles