Added transcription of audio and video files to local data sources (#1081)

Co-authored-by: Paul Koudelka <106623909+PaulKoudelka@users.noreply.github.com>
This commit is contained in:
Thorsten SommerandPaul Koudelka authored and GitHub committed 2026-10-18 12:06:15 +02:00
1 parent 8642ce2d81
commit 752f7d828a
82 files changed
+3231 -302

No files matched your search

+26
View File
@@ -45,4 +45,30 @@ public sealed class TerminalLoggerTests
CultureInfo.CurrentCulture = previousCulture;
}
}
[Test]
public void AnExceptionIsDescribedTogetherWithItsCause()
{
var exception = new HttpRequestException("Error while copying content to a stream.", new IOException("Unable to write data to the transport connection.", new InvalidOperationException("Connection reset by peer.")));
Assert.That(TerminalLogger.DescribeException(exception), Is.EqualTo("Error while copying content to a stream. ---> Unable to write data to the transport connection. ---> Connection reset by peer."));
}
[Test]
public void AnExceptionWithoutCauseKeepsItsMessage()
{
Assert.Multiple(() =>
{
Assert.That(TerminalLogger.DescribeException(new InvalidOperationException("Something failed.")), Is.EqualTo("Something failed."));
Assert.That(TerminalLogger.DescribeException(null), Is.Null);
});
}
[Test]
public void TheCausesOfAnAggregateExceptionAreNotRepeated()
{
var exception = new AggregateException(new InvalidOperationException("First failure."), new InvalidOperationException("Second failure."));
Assert.That(TerminalLogger.DescribeException(exception), Is.EqualTo(exception.Message));
}
}