Below is the Scenario.
I have a public class which contains 2 static methods.
public class Helper{
public static string (string args1, Datetime dt)
{
string computedValue = GetSomeValue(args1);
return dt.ToString(computedValue);
}
public static GetSomeValue(string args2){
//Perform Computation and return a string
}
}
Now I want to unit test the GetSomeValue
method. I am not sure if we can mock the static method or if we should be unit testing this method.
Please help.