Skip to content

Conversation

duncanworthy
Copy link
Contributor

I encountered a NullReferenceException when using Resolve().WithSingleInstance()

This was not being highlighted by the unit tests because they were only verifying that an AssertionException is not thrown.

Update test assertions to reveal a problem in SingleTypeKernelAssertions.BuildFailureMessage()
Two tests will now fail with a System.NullReferenceException
Prevent NullReferenceException when kernel.GetSingleInstanceActivationError(type) does not return an error.
kevinkuszyk added a commit that referenced this pull request Dec 11, 2014
NullReferenceException in SingleTypeKernelAssertions
@kevinkuszyk kevinkuszyk merged commit f40b3c2 into fluentassertions:master Dec 11, 2014
@kevinkuszyk
Copy link
Member

Thanks for the contribution - it's in version 1.2.0 which is up on NuGet now.

@duncanworthy
Copy link
Contributor Author

You're welcome. Thanks for letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants