public void BuildHangBasedProcDumpArgsWithFullDumpEnabledShouldCreateCorrectArgString() { var procDumpArgsBuilder = new ProcDumpArgsBuilder(); var argString = procDumpArgsBuilder.BuildHangBasedProcDumpArgs(this.defaultProcId, this.defaultDumpFileName, true); Assert.AreEqual("-accepteula -n 1 -ma 1234 dump.dmp", argString); }
public void BuildTriggerProcDumpArgsWithFullDumpEnabledShouldCreateCorrectArgString() { var procDumpArgsBuilder = new ProcDumpArgsBuilder(); var argString = procDumpArgsBuilder.BuildTriggerBasedProcDumpArgs(this.defaultProcId, this.defaultDumpFileName, new List <string> { "a", "b" }, true); Assert.AreEqual("-accepteula -e 1 -g -t -ma -f a -f b 1234 dump.dmp", argString); }
public void BuildTriggerProcDumpArgsWithAlwaysCollectShouldCreateCorrectArgString() { var procDumpArgsBuilder = new ProcDumpArgsBuilder(); var argString = procDumpArgsBuilder.BuildTriggerBasedProcDumpArgs(this.defaultProcId, this.defaultDumpFileName, new List <string> { "a", "b" }, true, collectAlways: true); // adds -t for collect on every process exit Assert.AreEqual("-accepteula -e 1 -g -t -ma -f a -f b 1234 dump.dmp", argString); }