how to write unit test for private static method in c#? Is that good to have private static method?
private static <someReturnType> SomeMethodName(SomeParameters){}
how to write unit test for private static method in c#? Is that good to have private static method?
private static <someReturnType> SomeMethodName(SomeParameters){}
The answer to this is don't test the implementation details of your class, test its behaviour or interactions. The fact that the method is static is irrelevant.
You unit test should validate that given some conditions, calling a public method results in some expected response or expected interaction with dependencies. How that response is generated or how the interactions happen in the class under test are not really important, what's important is the externally verifiable behaviour.