9
votes
Accepted
Unit tests using C#, Moq, AutoFixture, FluentAssertions
It's pretty clean. In my oppinion, test parameters should be setup in each test, and not during setup. Setup is for setting up infrastructure bits. You should be able to take advantage of AutoFixture ...
6
votes
Accepted
Unit/integration tests
Regarding your fluent approach to assertions, I'm definitely a fan of anything that makes tests more succinct and readable - as long as it's crystal clear what's going on. A one-liner like "kernel = ...
4
votes
Accepted
Mock Atm program basic functions and xUnit unit test
This is a decent improvement over your first posting. Let's start off with some things you are doing right.
Your use of Decimal is correct. Many first attempts ...
3
votes
Mock Atm program basic functions and xUnit unit test
Pick your framework
You're learning new stuff, so your style will develop as you progress. While the code is still fresh, try to refactor as you go, so that the code moves towards a consistent style. ...
2
votes
Open source project to ease the Assert part from the functional tests of .Net Core Web APIs
I created a very similar extension to FluentAssertions a while ago, which i have now abandoned. Here are my thoughts:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
c# × 5fluent-assertions × 5
unit-testing × 3
.net × 1
json × 1
library × 1
dependency-injection × 1
fluent-interface × 1
json.net × 1
moq × 1
ninject × 1
xunit × 1