Skip to content

Commit

Permalink
Drop explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt authored and alexmg committed Mar 4, 2019
1 parent 5df1ee7 commit 7ff61cc
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/Autofac.Test/Core/DependencyResolutionExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,6 @@ public void ExceptionMessageUnwrapsNestedResolutionFailures()
ex = Assert.Throws<DependencyResolutionException>(() => container.Resolve<C>());
}

// Without unwrapping, the exception message is:
//
// An error occurred during the activation of a particular registration. See the inner exception
// for details. Registration: Activator = C (ReflectionActivator), Services =
// [Autofac.Test.ExceptionReportingTests+C], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime,
// Sharing = None, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of
// a particular registration. See the inner exception for details. Registration: Activator = B
// (DelegateActivator), Services = [Autofac.Test.ExceptionReportingTests+B], Lifetime =
// Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope --->
// An error occurred during the activation of a particular registration. See the inner exception for
// details. Registration: Activator = A (ReflectionActivator), Services =
// [Autofac.Test.ExceptionReportingTests+A], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime,
// Sharing = None, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the
// constructor 'Void .ctor()' on type 'A'. ---> This is the original exception. (See inner exception
// for details.) (See inner exception for details.) (See inner exception for details.) (See inner
// exception for details.)
var n = GetType().FullName;
Assert.Equal($"An exception was thrown while activating {n}+C -> λ:{n}+B -> {n}+A.", ex.Message);

Expand Down

0 comments on commit 7ff61cc

Please sign in to comment.