示例#1
0
 // getDate should return date in required format by reading first comma seperated value frm given string.
 public void getDate_success()
 {
     ProcessLogcontent processLogcontent = new ProcessLogcontent();
     string            logLine           = "05/22 01:02:33 error :...this is first log";
     var expected_Date = processLogcontent.getdate(logLine);
     //    Assert.Equal("22 May 2020",expected_Date);
 }
示例#2
0
        // getDate should return default date "3 june 2020" if not date syntax found in given log.
        public void getDate_failure()
        {
            ProcessLogcontent processLogcontent = new ProcessLogcontent();
            string            logLine           = "05:06 error :...this is first log";
            var expected_Date = processLogcontent.getdate(logLine);

            Assert.Equal("3 June 2020", expected_Date);
        }