public void AggregatedExceptions()
{
AggregateException eAgg = ThrowAggregatedException();
var d = CKExceptionData.CreateFrom( eAgg );
Assert.That( d.ExceptionTypeAssemblyQualifiedName, Is.EqualTo( typeof(AggregateException).AssemblyQualifiedName ) );
Assert.That( d.ExceptionTypeName, Is.EqualTo( typeof( AggregateException ).Name ) );
Assert.That( d.AggregatedExceptions.Count, Is.GreaterThanOrEqualTo( 1 ) );
Assert.That( d.InnerException, Is.SameAs( d.AggregatedExceptions[0] ) );
for( int i = 0; i < d.AggregatedExceptions.Count; ++i )
{
CheckSimpleExceptionData( d.AggregatedExceptions[i], s => s.StartsWith( "Ex n°" ) );
}
}