How to write cleaner unit tests with Fluent Assertions in .NET Core (Framework, Standard)
ฝัง
- เผยแพร่เมื่อ 27 ก.ค. 2024
- Become a Patreon and get source code access: / nickchapsas
Check out my courses: dometrain.com
Hello everybody I'm Nick and in this .NET tutorial I will teach you how you can write cleaner unit tests assertions using the FluentAssertions Nuget package.
Fluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit test.
Give FluentAssertions a star: github.com/fluentassertions/f...
Don't forget to comment, like and subscribe :)
Social Media:
Follow me on GitHub: bit.ly/ChapsasGitHub
Follow me on Twitter: bit.ly/ChapsasTwitter
Connect on LinkedIn: bit.ly/ChapsasLinkedIn
#dotnet #fluentassertions #tests
Are you looking for more training? Check out my "From Zero to Hero: Unit testing in C#" course: nickchapsas.com/p/from-zero-to-hero-unit-testing-in-c
Awesome, I start using Fluent Assertions a couple weeks ago when I watch your Mock tutorial. Thank you Nick.
Thanks Nick, appreciate the content.
Waiting your all videos 😍
are you having any sales soon for your courses please?
👏👏
would be cool to make an updated video, maybe showing other libraries and comparing them, such as shouldly
I have intentionally not made a video about Shouldly. I think FluentAssertions is a better product and people should be using that. My opinion hasn't changed.
Thanks for this. Please in regards to consuming Rest APIs is there any better way of consuming APIS you would like to show, may be as part of your .net Core clean Architectures
Oh... Why does 'sut' mean 'nipple' in the Polish language... I just can't get over it. :) Can you propose me another name for it? 😂
You could use "subject" or "actual" instead of "sut".
ُExactly, it reads like "English" ... however, it might not be of any sense in other languages.
It’s funny. I’ve never thought of software being written in other languages. That being said, software engineering has been designed around English. Do you have any suggestions to remove this disconnect?