private void CheckOneErrorMessage(TraceDocument doc, string msg) {
     string actual = doc.GetDataAt(0);
     if (actual != msg) {
         //しばしば長くなる。Debugに出さないとわかりづらい
         Debug.WriteLine("actual=" + actual);
     }
     Assert.AreEqual(msg, actual);
 }
Exemple #2
0
        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�ɗ���Ȃ��ł������΃x�X�g����
            System.Windows.Forms.MessageBox.Show(bld.ToString(), "Poderosa", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
        }
Exemple #3
0
 public EmptyTracer()
 {
     Document = new TraceDocument();
 }
 private void CheckOneErrorMessage(TraceDocument doc, string msg)
 {
     string actual = doc.GetDataAt(0);
     if (actual != msg) {
         //���΂��Β����Ȃ�BDebug�ɏo���Ȃ��Ƃ킩��Â炢
         Debug.WriteLine("actual=" + actual);
     }
     Assert.AreEqual(msg, actual);
 }
 /// <summary>
 /// コンストラクタです。
 /// </summary>
 public EmptyTracer()
 {
     Document = new TraceDocument();
 }