2023-09-12 15:43:30 +02:00
|
|
|
|
using Core;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
|
|
|
|
namespace DistTestCore
|
|
|
|
|
{
|
|
|
|
|
public static class DownloadedLogExtensions
|
|
|
|
|
{
|
|
|
|
|
public static void AssertLogContains(this IDownloadedLog log, string expectedString)
|
|
|
|
|
{
|
|
|
|
|
Assert.That(log.DoesLogContain(expectedString), $"Did not find '{expectedString}' in log.");
|
|
|
|
|
}
|
2023-12-12 14:18:26 +01:00
|
|
|
|
|
|
|
|
|
public static void AssertLogDoesNotContain(this IDownloadedLog log, string unexpectedString)
|
|
|
|
|
{
|
|
|
|
|
Assert.That(!log.DoesLogContain(unexpectedString), $"Did find '{unexpectedString}' in log.");
|
|
|
|
|
}
|
2023-09-12 15:43:30 +02:00
|
|
|
|
}
|
|
|
|
|
}
|