protected void Remove_calls(Expression<Action<CallIn>> methodSelector, params Assembly[] asmblies) { using (var updater = new AssemblyUpdater("TheIndex.dll")) { updater.For(methodSelector) .RemoveCallsToTheseAssemblies(asmblies); } }
public void Given() { Construct_fresh_index(); var remoteLocation = Path.Combine(Path.GetTempPath(), "friend.dll"); ensure_this_assembly_is_missing_locally("friend.dll"); var a = With_a_monitored_assembly_stored_under(remoteLocation); using (var updater = new AssemblyUpdater("TheIndex.dll")) { updater .For(c => c.Install(null, null)) .AddCallsWithTheseAssemblies(a.AsEnumerable()); } _entryPoint = Get_entry_point_from_index(); }