Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException in SingleTypeKernelAssertions #4

Merged
merged 2 commits into from
Dec 11, 2014

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.

None yet

2 participants