@ -125,6 +125,14 @@ namespace Test.LightweightIocContainer
Assert.AreEqual(message, exception.Message);
}
[Test]
public void TestCircularDependencyExceptionNoStack()
{
CircularDependencyException circularDependencyException = new CircularDependencyException(typeof(IFoo), null);
string message = $"Circular dependency has been detected when trying to resolve `{typeof(IFoo)}`.\n";
Assert.AreEqual(message, circularDependencyException.Message);
public void TestNonCircularDependencies()