Strona głównaSztuka programowania

This post is based on my answer on the Stack Overflow – “How to unit test this function?” The original question is about writing unit test for a code that uses Console methods inside its body. This problem is more general and in this post, I want to show one of the ways to unit test code with static method.Example of code with static methods This example is from the Stack Overflow quest...

Tagi: unit testing
Źródło: www.mfranc.com
Dziel się z innymi:
[EN] Unit Test code with static method Console.Write | Passionate Programmer

Sztuka programowania 4325 dni, 12 godzin, 6 minut temu michalfranc 67 pokaż kod licznika zwiń

Wczytywanie artykułów...