2023-09-20 10:51:47 +02:00
|
|
|
|
namespace DistTestCore.Logs
|
2023-04-12 13:53:55 +02:00
|
|
|
|
{
|
2023-09-12 11:25:04 +02:00
|
|
|
|
public class TestLog : BaseTestLog
|
2023-04-12 13:53:55 +02:00
|
|
|
|
{
|
2023-04-14 14:53:39 +02:00
|
|
|
|
private readonly string methodName;
|
|
|
|
|
private readonly string fullName;
|
2023-04-12 13:53:55 +02:00
|
|
|
|
|
2023-06-21 10:06:54 +02:00
|
|
|
|
public TestLog(string folder, bool debug, string name = "")
|
2023-04-25 11:31:15 +02:00
|
|
|
|
: base(debug)
|
2023-04-12 13:53:55 +02:00
|
|
|
|
{
|
2023-07-18 09:02:41 +02:00
|
|
|
|
methodName = NameUtils.GetTestMethodName(name);
|
2023-04-14 14:53:39 +02:00
|
|
|
|
fullName = Path.Combine(folder, methodName);
|
2023-04-12 13:53:55 +02:00
|
|
|
|
|
2023-04-19 10:42:08 +02:00
|
|
|
|
Log($"*** Begin: {methodName}");
|
2023-04-12 13:53:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-06-28 15:11:20 +02:00
|
|
|
|
protected override string GetFullName()
|
2023-04-12 13:53:55 +02:00
|
|
|
|
{
|
2023-06-28 15:11:20 +02:00
|
|
|
|
return fullName;
|
2023-04-12 13:53:55 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|