Category: rscg_static
-
Revisit RSCG_Static
In 2023 I have created RSCG_Static as a way to mock static methods from classes ( think DateTime, Environment, Process) . From that time , the interfaces in C# have gained static keyword – so – a little improvement seems necessary . However, how can you mock a static method from a interface ? The…