What is the correct way for dealing with interfaces the expose set-only properties with Moq? Previously I've added the other accessor but this has bled into my domain too far with random throw new NotImplementedException()
statements throughout.
I just want to do something simple like:
mock.VerifySet(view => view.SetOnlyValue, Times.Never());
But this yields a compile error of The property 'SetOnlyValue' has no getter
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…