Static

You may have a need to access static third-party classes or methods. Instead of accessing static resources directly, it would be better to access these through an interface. In the example of DateTime in C#, Now is a static property, which prevents you from being able to control the DateTime value used by the class or method being tested. This makes it more difficult to verify your test cases and ensure your program's logic is behaving correctly, based on specific dates or times.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.57.67