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
Hello, I'm an instructor at the Nashville Software School and my students and I are using Moq for testing. While working through an in-class example, we noticed what seemed to be a typo in the documentation describing how to use Verify(). When applying the instructions, intelli-sense complains and compilation fails. Considering the example from the docs:
According to the interface IVerifiesand documention, Verifiable() return type is void and therefore calling .Returns(true) on a void causes compilation to fail and Intelli-sense yells: Operator '.' cannot be applied to operand of type void.
The text was updated successfully, but these errors were encountered:
jcockhren
changed the title
Documentaion Correction around using Verify()
Documentation Correction around using Verify()
Mar 18, 2017
Thanks! Please note that at the moment, this correction won't be seen on NuDoq, since NuDoq doesn't have the documentation for the latest version of Moq. I'll try to follow up on this in #354.
Hello, I'm an instructor at the Nashville Software School and my students and I are using Moq for testing. While working through an in-class example, we noticed what seemed to be a typo in the documentation describing how to use Verify(). When applying the instructions, intelli-sense complains and compilation fails. Considering the example from the docs:
According to the interface
IVerifies
and documention, Verifiable() return type isvoid
and therefore calling.Returns(true)
on a void causes compilation to fail and Intelli-sense yells:Operator '.' cannot be applied to operand of type void
.The text was updated successfully, but these errors were encountered: