The combination "Ctrl+K, Ctrl+D" is formatting your code. You don't need to use Tab or delete tabs to format your code Thanks for the explanations and your lessons.
@al-doori2392
Жыл бұрын
The issue was that in the method "MostRecentPings" we returning *an array ([])* of *PingOptions* . so the correct test is the following: *result.Should().BeOfType();* Thank you a lot Teddy for this amazing playlist.
@NebulaGhost21
Жыл бұрын
Yep, that fixed the issue!
@al-doori2392
Жыл бұрын
@@NebulaGhost21 Glad it did :)
@cj-vp9rf
11 ай бұрын
the hero we need but don't deserve
@Tretrauneverdie
22 күн бұрын
nice it's work!
@robwalker4653
Жыл бұрын
The reason you are getting the error is because you are declaring an IEnumerable which is a generic interface and then passing an array of pingoptions into it when you create it. So its type is PingOptions[].
@ramsameer1636
Жыл бұрын
the actual method is returning list of pingOptions where in our unit test assert we are expecting it to return typeOf IEnumerable may be we can try returning list in the testing
@raggardy
Жыл бұрын
Yeah, I just changed it to List and it worked
@ramsameer1636
Жыл бұрын
@@raggardy great 👍
@olusolaadekunle6520
6 ай бұрын
Thank for this tutorial. Exactly what I was looking for to jump into unit testing properly.
@TeddySmithDev
6 ай бұрын
Thanks for taking time to watch!
@johnchimbani8473
5 ай бұрын
Dude, this is aweome stuff. Keep it up! You are a good teacher 😀
@user-hm7xe5xt9l
Жыл бұрын
Great lessons! Clear and informative.
@Sthunknown
5 ай бұрын
Great job, thanks! Easy to follow and enjoyable. :)
@catbroh
6 ай бұрын
Thank you for this! Very follow-able.
@chadgregory9037
2 жыл бұрын
"the thing called options is an options object" ... brilliant Teddy lmao
@murtazotoshniyozov4688
4 ай бұрын
Thank you! I found it very userful)
@anantapodder2144
4 ай бұрын
Appreciate your work. By the way, you can improve your typing little bit, it'll save lot of time.
@omarhesham7492
Жыл бұрын
Thank you very much, great explanation
@user-kd9tj4ke4g
11 ай бұрын
Note: I have resharper and Theory does not work for me so I had to change to Test and TestCase attributes.
@subashbarik
Жыл бұрын
Thanks , Nice One.
@loryteck
Жыл бұрын
nice :) thanks again
@user-nj7of5yi4b
5 ай бұрын
thanks
@LHunter
2 ай бұрын
9:55 XD
@jephrennaicker4584
11 ай бұрын
great video! but you should have a bottle of water nearby next time.
Пікірлер: 39