public void Append(Exception exception, string expectedRootError, string expectedText) { StringBuilder text = new(); string rootError = BugReporter.Append(text, exception); rootError.Should().Be(expectedRootError); text.ToString().Should().Be(expectedText); }