Comments (8)
Promise I will get to this as soon as I get settled into my new house and job (sort of).
from fluentassertions.autofac.
Hi @stephenpatten,
You're right. It looks like the compiler can only resolve the FluentAssertions core extensions but not the AutoFac-specific ones. Note that they live in the namespace FluentAssertions.AutoFac
.
Be sure to add using FluentAssertions.Autofac;
after using FluentAssertions;
at the top of your Test classes to help the compiler find the IContainer-extension methods.
Let me know if that helps.
from fluentassertions.autofac.
Thanks for the quick response.
As a sanity check I have forked FluentAssertions.Autofac and can get the repo to build on the same machine that is having issues with adding the reference to fluentAssertions.Autofac. Here are some images that might help use diagnose the issue. The UnitTest project is targeting 4.5.2
from fluentassertions.autofac.
Hm, i would need to guess. The indicated versions should be compatible.
Looks like something simple & stupid. It seems the package reference somehow got messed up.
However, 4.5.2 should be ok. Did you probably tweak the target framework after adding the NuGet reference?
Did you try building with maximum verbosity and check the output on messages with respect to the reference?
If that does not help, would it be possible for you to publish the solution in a manner that i could possibly reproduce the error?
from fluentassertions.autofac.
How can I give it to you in a secure way?
from fluentassertions.autofac.
Setting the build output did not shed any light on the issue, BUT if I removed the nuget package for the test project and then added the dll by hand it works... weird
from fluentassertions.autofac.
For me to reproduce you could clone/upload it to a private repo and add me as a team member. GitLab.com has free private/personal repos, for instance.
Another guess: Did you try moving the using clauses out of your own namespace and to the top of file?
from fluentassertions.autofac.
Close due to inactivity
from fluentassertions.autofac.
Related Issues (20)
- Create `RegisterSourceAssertions` HOT 7
- Support for FluentAssertions 5 HOT 7
- Documentation speaks about NInject HOT 1
- Wrong dependency version? HOT 7
- Not possible to test module with constructor parameters? HOT 4
- Difference in resolving compared to Autofac itself HOT 13
- Strong-name sign so that delay-signed projects can be executed. HOT 3
- Target to .net 4.7.2 HOT 3
- Support asserting conditional registration (OnlyIf, IfNotRegistered)
- Support for Decorators HOT 1
- Update coveralls HOT 3
- Support for ILifetimeScope in addition to Container HOT 2
- Migrate from cake to nuke HOT 2
- Support Autofac 6 HOT 8
- If you use RegisteredGeneric and Named you can't test it HOT 4
- Support for Autofac 6.4.0 and FluentAssertions 6.7.0 HOT 1
- Add Support for .NET 7, C# 11
- Support of .net core HOT 9
- Interceptor and parameter registrations HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentassertions.autofac.