We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d12aca7 commit 71cd6c8Copy full SHA for 71cd6c8
src/FluentAssertions.Ioc.Ninject/SingleTypeKernelAssertions.cs
@@ -57,6 +57,8 @@ public void To<T>()
57
58
private string BuildFailureMessage(ActivationError error)
59
{
60
+ if (error == null) return string.Empty;
61
+
62
var builder = new StringBuilder();
63
64
builder.AppendFormat("Unable to resolve type {0}.", error.Type.FullName);
0 commit comments