Deutsch

Непонятки с EF

26.12.23 17:55
Re: Непонятки с EF
 
AlexNek патриот
AlexNek
Дверь надо называть дверью

По теории вполне возможно. Но если на практике она долгое время называлась дыркой и выглядит как дырка, то никто не захочет называть это дверью смущ Разве в проспекте можно написать - дверь в загадочное подземелье...

Если Moq есть, то нефиг называть энто интеграционным тестом.


ну и напрямую ничего про базы нет, кроме side effect.

"Unit tests focus on a single part of a whole application in total isolation, usually, a single class or function. Ideally, the tested component is free of side effects so it is as easy to isolate and test as possible."

"We have learned that, in practice, the isolation property of unit tests may not be enough for some functions. In this case, one solution is to test how parts of the application work together as a whole. This approach is called integration testing.

Unlike unit testing, integration testing considers side effects from the beginning. These side effects may even be desirable."

 

Перейти на