Unit Testing in C# 2022: 1. Intro + First Test

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024
  • Unit Testing in C# 2022: 1. Intro
    C# Developer Discord Server here: / discord
    Linkedin: / teddy-smith-015ba61a3
    Portfolio: www.teddysmithd...
    Github: github.com/ted...

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

  • @guilhermenavarro4676
    @guilhermenavarro4676 ปีที่แล้ว +7

    I was looking for unit testing content and i find this. Thanks, i liked your laid-back way of explaining!

  • @joaogabrielv.m328
    @joaogabrielv.m328 2 ปีที่แล้ว +8

    Dang! You're on fire, Teddy :)
    Thanks for more one video with an excellent explanation

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

    33 seconds in, and I feel very positive about this! Good job!

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

    Thank you for this @Teddy Smith!
    Just wanted I needed. Super excited to enhance my testing skills!

  • @ragtop63
    @ragtop63 10 หลายเดือนก่อน

    The first 5 minutes of this video cleared up so much for me:
    I am not a software developer.
    I don't work for a software company.
    I don't plan on being a software developer.
    I don't plan on working at a software company.
    I just write apps & libraries for myself, and sometimes I share them with the open-source community.
    But for some reason I still want to learn about unit testing and see if it can help my specific situation (learning to code better).

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

    It's great to have Luke Skywalker teaching me about unit testing! great content!

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

      I was going for baby yoda but Luke is cool too I guess

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

    Cheers man great video. Im working my way through the whole series

  • @javalicodar
    @javalicodar 2 หลายเดือนก่อน

    Best explanation about tests i've ever found. Good job, Teddy!

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

    I am starting this lesson as a newbie.
    Thanks for your video tutorial!

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

    You just got a new subscriber :D very good and entertaining lesson. Thank you

  • @UmairKhan-hc2ql
    @UmairKhan-hc2ql ปีที่แล้ว +1

    Excellent initiative, loved the way you explained

  • @Sthunknown
    @Sthunknown 7 หลายเดือนก่อน

    Really liked your
    input: water
    function: human
    returns pee
    example. 😁

  • @Александр-е6л1ш
    @Александр-е6л1ш 2 ปีที่แล้ว +1

    Thanks. Just in time, trying to figure out the tests

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

      Sweet. Thanks for commenting and watching.

  • @meileehao5645
    @meileehao5645 3 หลายเดือนก่อน

    Thanks you, I start understand on what is unit test.

  • @buraksag6073
    @buraksag6073 ปีที่แล้ว

    Amazing explanation. Thank you!
    23:20🤣

  • @simxschl
    @simxschl 5 หลายเดือนก่อน

    Happy 1400 likes ;)
    Made me laugh so I'll keep watching :)

  • @myCrypto-c2v
    @myCrypto-c2v ปีที่แล้ว

    Wow Really nice explanation. Thank you!

  • @RishabhAgarwal-e7d
    @RishabhAgarwal-e7d 4 หลายเดือนก่อน

    Thanks Teddy, I understood clearly

  • @nadaehab263
    @nadaehab263 ปีที่แล้ว

    so if i have a project with no classes and function implementation in separate source file i also do the tests in a class ?

  • @benjokela7491
    @benjokela7491 ปีที่แล้ว

    thanks for this. Nice simple unit test tutorial. I'm also an audio guy and I just want to point out, you have a pop filter on your mic, but all your "p"s and strong breaths are "popping". Try backing the filter off of the mic and bring down the input gain. 🙂

    • @TeddySmithDev
      @TeddySmithDev  ปีที่แล้ว

      thank you for input. i did end up fixing and getting a better mic setup after this

  • @casesolia7356
    @casesolia7356 2 หลายเดือนก่อน

    This really needs chapters, so I can find where I am in my progression and match that up with your segments.

  • @gregiolo
    @gregiolo 5 หลายเดือนก่อน

    I am not a C# dev but do you really need to wrap every test in try catch inside the unit test?? Is that a common practice??

    • @TeddySmithDev
      @TeddySmithDev  5 หลายเดือนก่อน

      No, later on the unit tests don’t have try catch. They just break and show up in the console.

  • @eleojoadegbe
    @eleojoadegbe 2 หลายเดือนก่อน

    thank you. Youre the best

  • @AdeelKamran-j3z
    @AdeelKamran-j3z 8 หลายเดือนก่อน

    loving it

  • @mpiloz8016
    @mpiloz8016 ปีที่แล้ว

    starting to follow along with this unit test course, just had a brown out and had to restart.
    however, can't help but be bugged by seeing the "solution explorer" on the left 😂, It's probably gonna be a good journey either way, even though I get bugged by small things like that.
    btw, doing the course because I'm on my 2nd year of my 2nd dev job, used to be a desktop technician, but got pulled into dev allegedly for my work ethic in the same company as my last desktop technician job (I had intention of staying there, until covid came and took jobs away, and now I work 50km from my house instead of just 5km, hoping learning the various things I check online can get me something fully remote).

  • @chantelboiro3899
    @chantelboiro3899 ปีที่แล้ว

    This was so helpful thank you!

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

    Biggest thing with the code just breaking, years ago some dolt re-wrote a formula, had no unit tests, pushed it. They were missing a part of it in the "cleaned up" version so of course ti wasn't mathing properly. We spent who know's how long searching for the error in the entire freaking project, step, by, step, and then had to go get a fish and slap the person with it for changing a + to a - in the formula...
    Unit tests, they exist, require them, if people don't, throw their commits anywhere else but the main repo until they have them. Thousands of lines of game and networking code, for a freaking - sign being the wrong in some random function we all thought was fine because this same idiot likes to make 40+ file huge commits of tiny things and it got burried in one of those. Just use the freaking unit tests please and thank you. xD

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

      I legit laughed at your story 🤣

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

    you remind me of Luke Skywalker hehe. Great video bro

  • @2005Azm
    @2005Azm ปีที่แล้ว

    Thank you so much!

  • @henrik3098
    @henrik3098 ปีที่แล้ว

    Nice video bro!

  • @jacquesdemolay2699
    @jacquesdemolay2699 25 วันที่ผ่านมา

    2 things:
    - why static ?
    - why try/catch construct ?
    a unit test should not be structured like production code.
    should not need a try/catch.

    • @TeddySmithDev
      @TeddySmithDev  25 วันที่ผ่านมา

      most people have no idea what a unit test is, so this is just a concept to teach underlying idea without jumping into frameworks

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

    Would you be also doing Integration testing? Thank you!

    • @TeddySmithDev
      @TeddySmithDev  ปีที่แล้ว

      Just unit tests for this one 👍

  • @tamasboros1798
    @tamasboros1798 11 หลายเดือนก่อน

    Why do we need that try-catch block?

    • @TeddySmithDev
      @TeddySmithDev  11 หลายเดือนก่อน +1

      I guess you don’t but all exceptions are “unchecked” in C# so if you want to see an error try-catch is going to be the best bet (edit: spelling)

    • @tamasboros1798
      @tamasboros1798 11 หลายเดือนก่อน

      oh, ok.Thanks!
      @@TeddySmithDev

  • @raizaindrakurniawan2585
    @raizaindrakurniawan2585 ปีที่แล้ว

    Ninggalin jejak dulu om

  • @mpiloz8016
    @mpiloz8016 ปีที่แล้ว

    I clicked the thumbs up, you better have done some web api stuff.... or else.

  • @alibozkurt-i5r
    @alibozkurt-i5r 7 หลายเดือนก่อน

    thanks

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

    Do Web API too please 😎

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

    Teddy... were you the one that they berated lol

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

      Lol good question. Wasn’t me that time but they did in general. They went out of business I think tho so write your unit tests lollllll

  • @00fke
    @00fke ปีที่แล้ว

    Why does he look like one of the guys from Lonely Island? 😆

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

      It’s my bowl cut. It actually has a second brain inside that helps me code 🤣

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

    omg.. this takes a long time with a lot of content which you could edit out.

    • @lassemunktechnerd
      @lassemunktechnerd ปีที่แล้ว

      Check out this video starting from 16 minutes in
      th-cam.com/video/HYrXogLj7vg/w-d-xo.html

  • @UNHAPPYMEXICANS
    @UNHAPPYMEXICANS ปีที่แล้ว

    Umm that toxici workplace story.... sounds like it was on the workplace, not the individual.

    • @TeddySmithDev
      @TeddySmithDev  ปีที่แล้ว

      Looking back on it, I think I came in at a bad time. Everything was falling apart and I think people were secretly panicking but I was too new to understand what was really going on.

  • @MyTorak
    @MyTorak 8 วันที่ผ่านมา

    Русские есть?

  • @АндрейЛ-у7в
    @АндрейЛ-у7в ปีที่แล้ว +1

    just waist my time to you ((

  • @keif4now
    @keif4now 8 หลายเดือนก่อน +2

    waaaay too slow!!!!

  • @5SADH
    @5SADH 5 หลายเดือนก่อน

    Please reconsider saying, "we're going to", "go ahead", "actually", or any combination of them. 🤢
    It will make your videos shorter and your content more digestible.