Hi, how do I mock the examble below?
I want o mock the Datetime method that is called inside the class.
Also, how to mock mscorlib methods for the whole class and not for a particular method?
Thanks,
Gustavo
I want o mock the Datetime method that is called inside the class.
Also, how to mock mscorlib methods for the whole class and not for a particular method?
Thanks,
Gustavo
public
static
class
MyStaticClass
{
public
static
string
MyStaticMethod()
{
return
Datetime.Now.ToString() +
"anotherRandomString"
;
}
}