Comments (7)
Change is made in 0.108 👍
from unitverse.
I updated to the most recent version and it did solved the issue!
The Fluent Assertions are not generated anymore, when "Use Fluent Assertions" is set to "False" and "Auto-detect frameworks" is set to "True".
Good job and super fast response - I am really impressed 😲!
from unitverse.
I can't repro that, if I use the UI and turn off Fluent Assertions, I get:
await Assert.ThrowsAsync<ArgumentNullException>(() => _testClass.Method(default(IList<uint>), CancellationToken.None));
If I leave Fluent Assertions on, I get:
await FluentActions.Invoking(() => _testClass.Method(default(IList<uint>), CancellationToken.None)).Should().ThrowAsync<ArgumentNullException>();
from unitverse.
I could figure out the reason: There are FluentAssertions in one project, when the option "Auto-detect frameworks" is set to "true", the option "use Fluent Assertions" seems to be ignored.
Setting "Auto-detect frameworks" to "false", the FluentActions is not being generated.
from unitverse.
Is it possible that you are turning off Fluent Assertions, then going back to the project tab and selecting a project? Because at that point it runs auto-detection... But in the example I used I had auto-detect frameworks set to True...
from unitverse.
I think in this case it probably auto-detected when selecting a project. I am pretty sure that if you turn off FluentAssertions and then click 'OK' it will generate without FluentAssertions.
I think I might change how it operates slightly though. Currently, if you click onto a project and then onto another it uses the settings from the first project as the 'base' for auto-detection. I think it should probably use the settings that were present when you opened the dialog as the base. I'll update that.
from unitverse.
Thanks, I appreciate you taking the time to come back to me. 👍
from unitverse.
Related Issues (20)
- Option to split naming convention for mock vs non-mock dependency fields HOT 2
- Feature Request: add InternalsVisibleTo when creating tests for internal classes HOT 2
- Add filtering to all pages of the generation dialog HOT 1
- Update documentation after generation dialog changes & addition of persistent project mappings
- Small bug with nested code files HOT 18
- Exception generating tests with code in nested files HOT 6
- "Goto Tests" menu item in editor window not working? HOT 24
- Add Async suffix to asynchronous methods HOT 2
- Maybe consider ordering generated tests alphabetically HOT 2
- Fixed bug in issue # 106 is still occurring HOT 7
- Add ability to skip internal types when generating for multiple types HOT 4
- I want to change the text in Assert.Fail HOT 2
- Add Assert for var result HOT 2
- Support more formatted output
- Report some errors HOT 2
- Partail Class Error: Syntax Node is not within syntax tree HOT 10
- Support option to prefer generation of Constructor/Disposable HOT 5
- NUnit - Omit generating [TestFixture] attribute HOT 1
- No Test Generated for Inherited method HOT 2
- Mocks being created with Moq even if NSubstitute is configured HOT 5
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 unitverse.