added Failure nodes and started working on ffmpeg metadata node

This commit is contained in:
John Andrews
2022-04-17 15:35:03 +12:00
parent b740894f99
commit e5f2489a43
47 changed files with 533 additions and 179 deletions

View File

@@ -18,7 +18,6 @@ namespace CollectionNodes.Tests
public void ILog(params object[] args) => Log("INFO", args);
public void WLog(params object[] args) => Log("WARN", args);
private void Log(string type, object[] args)
{
if (args == null || args.Length == 0)
@@ -39,6 +38,15 @@ namespace CollectionNodes.Tests
string log = string.Join(Environment.NewLine, Messages);
return log.Contains(message);
}
public string GetTail(int length = 50)
{
if (length <= 0)
length = 50;
if (Messages.Count <= length)
return string.Join(Environment.NewLine, Messages);
return string.Join(Environment.NewLine, Messages.TakeLast(length));
}
}
}