namespace Robust.UnitTesting.Pool;
public sealed class TestHistoryEntry
{
///
/// The name of the test.
///
public readonly string TestName;
///
/// The amount of memory the GC claims to be using at the time of adding this entry.
///
public readonly long TimeOfUseMemoryTotal;
internal TestHistoryEntry(string testName, long timeOfUseMemoryTotal)
{
TestName = testName;
TimeOfUseMemoryTotal = timeOfUseMemoryTotal;
}
public override string ToString()
{
return $"{TestName} (started at {TimeOfUseMemoryTotal} bytes allocated.)";
}
}