private void CheckOneErrorMessage(TraceDocument doc, string msg) { string actual = doc.GetDataAt(0); if (actual != msg) { //しばしば長くなる。Debugに出さないとわかりづらい Debug.WriteLine("actual=" + actual); } Assert.AreEqual(msg, actual); }
private static void ReportBootError(TraceDocument document) { StringBuilder bld = new StringBuilder(); foreach (TraceDocItem item in document) { if (bld.Length > 0) { bld.Append("\n"); } bld.Append(item.Data); } //WinFormsに頼らないでもいければベストだが System.Windows.Forms.MessageBox.Show(bld.ToString(), "Poderosa", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); }
public DefaultTracer(StringResource sr) { _document = new TraceDocument(); _strResource = sr; }