When I started to use moq, there was lots example of moq that use mock.Setup method, althought these code can be compile. The this method is not shown up in intellisense popup, it turns out in the latest version of moq, it hide this memeber like below.


[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Expect has been renamed to Setup.", false)]
public ISetup<T> Expect(Expression<Action<T>> expression);