Hi I am new to Moq testing and having hard time to do a simple assertion. I am using an interface
public interface IAdd { void add(int a, int b); }
Better to provide more context, but typically it used like this:
var mockAdd = new Mock(); mockAdd.Setup(x => x.Add(1, 2)).Verifiable(); //do something here what is using mockAdd.Add mockAdd.VerifyAll();