You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @RajaduraiAz, please note that this issue tracker focuses on Moq development, i.e. on feature requests and bug report. Please don't post pure usage questions here, as we don't have the capacity to answer them all. For such questions, you have a much larger audience at e.g. Stack Overflow.
(Also, if you do post what you think is a bug, you should post a MCVE, i.e. a minimal & complete code example that can be run to reproduce the issue.)
@stakx I think this is not usage related question. Moq return null value for Custom type but it's working defined data types like int. So only this posted here
I have similar work case for this stackoverflow question mocking method inside controller
[TestMethod]
public void Index()
{
// Arrange
var controller = Mock.Of(m => m.GetCheckStatus() == "Hi from Moq");
}
public ActionResult Index()
{
return View();
}
It's return null value. But if we change Index return type int it's working fine
The text was updated successfully, but these errors were encountered: