次のテストが失敗する理由を説明できる人はいますか?
Assert と Verify の両方が失敗します。
public interface ISomeInterface { }
[TestMethod]
public void FailingTest()
{
var mock = new Mock<ISomeInterface>();
mock.Setup(m => m.GetHashCode()).Returns(42);
int hashCode = mock.Object.GetHashCode();
mock.Verify(m => m.GetHashCode(), Times.Once());
Assert.AreEqual(42, hashCode);
}