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

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 72

  • @gutierrezvitor1
    @gutierrezvitor1 2 дня назад

    I need to learn unit tests and found this video, and the whole playlist, first video in and I really liked it. Great content Teddy!

  • @franciscogoni1248
    @franciscogoni1248 Год назад +13

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

    • @TeddySmithDev
      @TeddySmithDev  Год назад +3

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

    • @sketch1625
      @sketch1625 3 месяца назад

      ​@@TeddySmithDev Luke "I'll Test your Pee" Walker

  • @pequenomapadotempo
    @pequenomapadotempo Год назад +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!

  • @bionicbeaver6636
    @bionicbeaver6636 Год назад +2

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

  • @JohnnyDickson
    @JohnnyDickson Год назад +2

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

  • @javalicodar
    @javalicodar 6 месяцев назад

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

  • @joshl3013
    @joshl3013 Год назад +1

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

  • @ragtop63
    @ragtop63 Год назад

    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).

  • @UmairKhan-hc2ql
    @UmairKhan-hc2ql Год назад +1

    Excellent initiative, loved the way you explained

  • @nguyenphuhuy_tt
    @nguyenphuhuy_tt Год назад +1

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

  • @Александр-е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.

  • @buraksag6073
    @buraksag6073 Год назад

    Amazing explanation. Thank you!
    23:20🤣

  • @Sthunknown
    @Sthunknown 10 месяцев назад

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

  • @simxschl
    @simxschl 8 месяцев назад

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

  • @myCrypto-c2v
    @myCrypto-c2v Год назад

    Wow Really nice explanation. Thank you!

  • @meileehao5645
    @meileehao5645 7 месяцев назад

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

  • @Rishabh_Agarwal_27
    @Rishabh_Agarwal_27 7 месяцев назад

    Thanks Teddy, I understood clearly

  • @chantelboiro3899
    @chantelboiro3899 Год назад

    This was so helpful thank you!

  • @AdeelKamran-j3z
    @AdeelKamran-j3z 11 месяцев назад

    loving it

  • @eleojoadegbe
    @eleojoadegbe 5 месяцев назад

    thank you. Youre the best

  • @VivekTrivedi-y2m
    @VivekTrivedi-y2m 2 месяца назад

    bro's typing every single line by himself not even using auto complete insaneeeee!!!!!!!!!

  • @shashidarg4241
    @shashidarg4241 2 месяца назад

    What's problem with Creating unit test in VS code??

  • @casesolia7356
    @casesolia7356 6 месяцев назад

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

  • @VikramHuggi-y2s
    @VikramHuggi-y2s 18 дней назад

    well well well!!!

  • @henrik3098
    @henrik3098 Год назад

    Nice video bro!

  • @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).

  • @2005Azm
    @2005Azm Год назад

    Thank you so much!

  • @Tibiafy
    @Tibiafy Год назад +1

    you remind me of Luke Skywalker hehe. Great video bro

  • @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

  • @fieryscorpion
    @fieryscorpion 2 года назад +1

    Would you be also doing Integration testing? Thank you!

  • @antoniofuller2331
    @antoniofuller2331 Месяц назад

    I hope this video is up to date, because I know nothing about Testing software, nothing.

    • @TeddySmithDev
      @TeddySmithDev  Месяц назад +1

      Nobody has mentioned anything breaking or being outdated so you should be good to go

    • @antoniofuller2331
      @antoniofuller2331 Месяц назад

      @TeddySmithDev you replied fast, very intelligent indeed

  • @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 ?

  • @raizaindrakurniawan2585
    @raizaindrakurniawan2585 Год назад

    Ninggalin jejak dulu om

  • @tamasboros1798
    @tamasboros1798 Год назад

    Why do we need that try-catch block?

    • @TeddySmithDev
      @TeddySmithDev  Год назад +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 Год назад

      oh, ok.Thanks!
      @@TeddySmithDev

  • @gregiolo
    @gregiolo 8 месяцев назад

    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  8 месяцев назад

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

  • @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 🤣

  • @RaabStephan
    @RaabStephan Месяц назад

    I thought the dump truck was outside my house

    • @TeddySmithDev
      @TeddySmithDev  Месяц назад

      for some reason this comment triggered the memory of me living in that old apartment and hearing the dump truck in the morning lol

  • @lashondamiller2982
    @lashondamiller2982 2 года назад +3

    Do Web API too please 😎

  • @jacquesdemolay2699
    @jacquesdemolay2699 4 месяца назад

    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  4 месяца назад

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

  • @alibozkurt-i5r
    @alibozkurt-i5r 10 месяцев назад

    thanks

  • @mpiloz8016
    @mpiloz8016 Год назад

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

  • @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 🤣

  • @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.

  • @dopplermonk
    @dopplermonk Год назад +2

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

    • @dopplermonk
      @dopplermonk Год назад

      Check out this video starting from 16 minutes in
      ruclips.net/video/HYrXogLj7vg/видео.html

  • @MyTorak
    @MyTorak 3 месяца назад

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

  • @АндрейЛ-у7в
    @АндрейЛ-у7в Год назад +1

    just waist my time to you ((

  • @keif4now
    @keif4now 11 месяцев назад +3

    waaaay too slow!!!!

    • @sketch1625
      @sketch1625 2 месяца назад

      Your mem doesn't seem to mind

  • @5SADH
    @5SADH 9 месяцев назад

    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.