/// return empty string if no description is present in logline. public void getDescription_failure() { ProcessLogcontent processLogcontent = new ProcessLogcontent(); string logLine = "05/22 01/02/33 error :"; string expected = processLogcontent.getDescription(logLine); Assert.Equal(null, expected); }
// return description string from given logline public void getDescription_success() { ProcessLogcontent processLogcontent = new ProcessLogcontent(); string logLine = "05/22 01/02/33 error :...this is first log"; string expected = processLogcontent.getDescription(logLine); Assert.Equal(":...this is first log", expected); }