public void LogToStringTest() { BdoLog log = _testData.log; var st = log.ToString <BdoSnapLoggerFormat>(); var st_expected = "- Error0" + Environment.NewLine + "- Exception0" + Environment.NewLine + "- Message0" + Environment.NewLine + "- Warning0" + Environment.NewLine + "o Sub log0" + Environment.NewLine + "- Error1" + Environment.NewLine + "- Exception1" + Environment.NewLine + "- Message1" + Environment.NewLine + "- Warning1" + Environment.NewLine + "o Sub log1" + Environment.NewLine; Assert.That(st == st_expected, "Bad ToString function."); }