Example #1
0
        public MemberVirtualizerTest()
        {
            string assemblyPath = Assembly.GetExecutingAssembly().CodeBase
                                  .Replace("file:///", string.Empty)
                                  .Replace("EnableFaking.Fody.Test", "AssemblyToProcess");

            this.moduleDefinition = ModuleDefinition.ReadModule(assemblyPath);

            this.testee = new MemberVirtualizer();
        }
        public MemberVirtualizerTest()
        {
            string assemblyPath = Assembly.GetExecutingAssembly().CodeBase
                .Replace("file:///", string.Empty)
                .Replace("EnableFaking.Fody.Test", "AssemblyToProcess");

            this.moduleDefinition = ModuleDefinition.ReadModule(assemblyPath);

            this.testee = new MemberVirtualizer();
        }
 public ModuleWeaver(
     TypeSelector typeSelector,
     MemberSelector memberSelector,
     MemberVirtualizer memberVirtualizer,
     CallMapper callMapper)
 {
     this.typeSelector = typeSelector;
     this.memberSelector = memberSelector;
     this.memberVirtualizer = memberVirtualizer;
     this.callMapper = callMapper;
 }
 public ModuleWeaver(
     TypeSelector typeSelector,
     MemberSelector memberSelector,
     MemberVirtualizer memberVirtualizer,
     CallMapper callMapper)
 {
     this.typeSelector      = typeSelector;
     this.memberSelector    = memberSelector;
     this.memberVirtualizer = memberVirtualizer;
     this.callMapper        = callMapper;
 }