dennisgorelik: 2020-06-13 in my home office (Default)
Dennis Gorelik ([personal profile] dennisgorelik) wrote in [personal profile] juan_gandhi 2020-08-24 08:01 pm (UTC)

Re: What to test in time-dependent function?

> Добрый вечер", "Добрый день", или "Доброе утро" в зависимости от своего местного времени.

В данном случае, достаточно extract deterministic метод:
static string TimeToGreeting(DateTime time) { ... }
и покрыть его тестами.
Зачем, в данном случае, mocks?

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting