public void OwnStackTraceIsOmitted()
        {
            var exception1    = GetCaughtAssertException("Assert 1 failed");
            var exception2    = GetCaughtAssertException("Assert 2 failed");
            var assertsFailed = new AssertsFailed(ImmutableArray.Create(exception1, exception2));

            assertsFailed.StackTrace.Should().Be($"Stack trace of {nameof(AssertsFailed)} is omitted.");
        }
        public void ToStringIsAggregatedForAllExceptions()
        {
            var exception1    = GetCaughtAssertException("Assert 1 failed");
            var exception2    = GetCaughtAssertException("Assert 2 failed");
            var assertsFailed = new AssertsFailed(ImmutableArray.Create(exception1, exception2));

            assertsFailed.ToString().Should().Be(
                $"{Environment.NewLine}" +
                $"One or more assert failed:{Environment.NewLine}" +
                $"{Environment.NewLine}" +
                $"1) {exception1.Message}{Environment.NewLine}" +
                $"{Environment.NewLine}" +
                $"2) {exception2.Message}{Environment.NewLine}");
        }