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

ความคิดเห็น • 13

  • @nickchapsas
    @nickchapsas  2 ปีที่แล้ว +1

    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

  • @sunilanthony17
    @sunilanthony17 4 ปีที่แล้ว +2

    Awesome, I start using Fluent Assertions a couple weeks ago when I watch your Mock tutorial. Thank you Nick.

  • @waslem123
    @waslem123 4 ปีที่แล้ว

    Thanks Nick, appreciate the content.

  • @shashankpandey1019
    @shashankpandey1019 4 ปีที่แล้ว

    Waiting your all videos 😍

  • @shomari169
    @shomari169 2 ปีที่แล้ว +1

    are you having any sales soon for your courses please?

  • @shashankpandey1019
    @shashankpandey1019 4 ปีที่แล้ว

    👏👏

  • @VitorSubs
    @VitorSubs 3 ปีที่แล้ว

    would be cool to make an updated video, maybe showing other libraries and comparing them, such as shouldly

    • @nickchapsas
      @nickchapsas  3 ปีที่แล้ว +3

      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.

  • @flave11
    @flave11 4 ปีที่แล้ว +1

    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

  • @brtk7
    @brtk7 3 ปีที่แล้ว +1

    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? 😂

    • @jonasnyrup5635
      @jonasnyrup5635 2 ปีที่แล้ว

      You could use "subject" or "actual" instead of "sut".

  • @hasanbaidoun7463
    @hasanbaidoun7463 4 ปีที่แล้ว +1

    ُExactly, it reads like "English" ... however, it might not be of any sense in other languages.

    • @algoristhq1282
      @algoristhq1282 2 ปีที่แล้ว

      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?