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 LoadAndRunSystemRunners() { var updater = new AssemblyUpdater(MakeSureWeCanUseTypeInDomain, delegate(Type type) { if (type == typeof(Time)) return Activator.CreateInstance(type, Activator.CreateInstance<StopwatchTime>()); return Activator.CreateInstance(type); }); // This runs for 10 seconds, go to ConsoleRunner and change it while this is running! for (float time = 0; time < 10.0f; time += 0.1f) { updater.Run(); Thread.Sleep(100); } }
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(); }
private void UpdateLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { AssemblyUpdater.CheckForUpdates(); }
public void SetUp() { _assemblyUpdater = new AssemblyUpdater(_assemblyILInterface.Object); _SetupGetAllNonCtorMethods(); }