public void Can_Dump_Process() { DumpCreator creator = new DumpCreator(true, false); var process = AllocStrings(); string file = creator.Dump(new string[] { process.Id.ToString(), "test.dmp" }); Assert.IsNotNull(file, "Output dump file was null!"); Assert.IsTrue(File.Exists(file), "Dump file does not exist!"); Assert.IsNotNull(TargetInformation.GetExistingVMMapFile(file), "Associated VMMap dump file was not found. Is VMMap.exe in path?"); }
public void CleanDump() { if (File.Exists(dumpFileName)) { File.Delete(dumpFileName); } string vmmapFile = TargetInformation.GetExistingVMMapFile(dumpFileName); if (vmmapFile != null) { File.Delete(vmmapFile); } Program.IsDebug = true; }