Exemplo n.º 1
0
        public void WriteLineLogFileTest1()
        {
            string strFileName = string.Empty; // TODO: 初始化为适当的值
            string strFormat   = string.Empty; // TODO: 初始化为适当的值

            LOGs.WriteLineLogFile(strFileName, strFormat);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
Exemplo n.º 2
0
        /// <summary>
        /// 在文件数据输出流中写入一行具有参数的文本信息
        /// </summary>
        public override void WriteLine(string strWriteLine)
        {
            m_StringBuilder.Append(strWriteLine);

            m_StringBuilder.Insert(0, DateTime.Now.ToString(DateFormat));

            if (m_bIsLogFile == true)
            {
                LOGs.WriteLineLogFile(m_FileName, m_StringBuilder.ToString());
            }

            m_StringBuilder.Length = 0;
        }