public void ToStringTest() { ResultLog l0 = new ResultLog(); l0.LogGood("Good result."); l0.LogBad("Error result."); string s = l0.ToString(); Assert.True(s.Contains("Good result") && s.Contains("Error result")); }