Unit Testing in C# 2022: 4. Mocking EXPLAINED SIMPLY [FakeItEasy]
Вставка
- Опубліковано 9 кві 2022
- Unit Testing in C# 2022: 4. Mocking EXPLAIND SIMPLY [FakeItEasy]
C# Developer Discord Server here: / discord
Linkedin: / teddy-smith-015ba61a3
Portfolio: www.teddysmithdev.com
Github: github.com/teddysmithdev - Навчання та стиль
A fairly good video on intro to Mock, a little all over the place occasionally, but it is well explained. Slowing down a little to hit those dependencies early and type less could be beneficial to the overall delivery, though ;).
Big takeaway, is, Mock replaces data access execution with "Mock" data and listens for these calls to replace the execution and return expected data.
gone through every miniute very very nice explanation thanks for the content
Great video. The bottom taskbar was tripping me because it's almost identical to mine.
Thx for the video! I'll use Moq cause almost all companies use it, but it realy doesn't make a difference! Few things change as I could see!
wish I had teachers like you maan. respect
the most meticulous unit test videos on yt ever ! thank you
how to get value from the app.config that we create in project , i'm always get null return in the unit test. even though already copy the app.config in the unit test
"I hope I blew your mind" Really Man ! :)
Thanks for these videos. I’ve recently got a job on a dev that said they’d be using testing scripts. So, I’m trying to get a little familiar. I have an unrelated question: what kind of chair do you use? From my understanding, I’ll be mostly remote and my mesh chair isn’t working for me anymore and looks like yours is something closer to what I’m looking for.
Wellness By Design. I’ve had it for like 5 years and it’s lasted forever.
Amazing
Nice video 👍
I have been working as a dev (recently started) . I started with unit testing , but got stuck at mocking concept and fake it easy, am unable to write further. can you help me with that ?? gmail?
Post questions in discord and me or other developer will help you
The Mock Object dose not have the real Implementation of DNS . We just define the expected behavior of the external service.
A mock?...wait.....oh Dam, a Mock!🤣
Wouldn't your example be simplified by just making it a test stub? I understand that you might need to expand out functionality to mimic more behavior from a DNS dependency... but you usually don't take such big steps immediately, so that's why I'm suggesting a much simpler approach of just making a stub. Mock not really necessary for this single test case, which is typically how a test suite is written and a test case started. One at a time.
I think Mocks typically represent an external dependency which might depend on the inputs from the system under test and makes assertions based on those.
thanks
No prob. Good to see u again.
Where in North Carolina ?? haha Another dude in NC watching Unit testing videos from another dude in NC lol
Charlotte. I could throw a rock and hit panther stadium.