Unit Testing in C# 2022: 4. Mocking EXPLAINED SIMPLY [FakeItEasy]

Unit Testing in C# 2022: 4. Mocking EXPLAINED SIMPLY [FakeItEasy]

Teddy Smith

2 года назад

28,558 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

rebin mod
rebin mod - 16.09.2023 10:04

The Mock Object dose not have the real Implementation of DNS . We just define the expected behavior of the external service.

Ответить
Joe Gregory
Joe Gregory - 28.08.2023 22:42

Great video. The bottom taskbar was tripping me because it's almost identical to mine.

Ответить
Abid Shaik
Abid Shaik - 22.08.2023 21:36

Where in North Carolina ?? haha Another dude in NC watching Unit testing videos from another dude in NC lol

Ответить
Jephren Naicker
Jephren Naicker - 31.07.2023 22:34

A mock?...wait.....oh Dam, a Mock!🤣

Ответить
danny wahyudi
danny wahyudi - 19.05.2023 12:50

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

Ответить
Felipe Thomé
Felipe Thomé - 27.04.2023 14:06

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!

Ответить
पाटील Celebrations
पाटील Celebrations - 25.03.2023 21:48

Thank you so much @Teddy Smith! , Finally I have cleared the concept of A.callTo()😎. This is very nice explanation of mocking data.

Ответить
Sean H
Sean H - 07.03.2023 21:26

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.

Ответить
Furkan Cengiz
Furkan Cengiz - 20.02.2023 18:44

the most meticulous unit test videos on yt ever ! thank you

Ответить
Naive Coder
Naive Coder - 27.11.2022 05:14

"I hope I blew your mind" Really Man ! :)

Ответить
Ram Sameer
Ram Sameer - 26.11.2022 20:02

gone through every miniute very very nice explanation thanks for the content

Ответить
shivam Shrivastav
shivam Shrivastav - 30.06.2022 14:33

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?

Ответить
Eric Bruce
Eric Bruce - 10.04.2022 21:04

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.

Ответить