Moq is throwing Invalid setup on a non-overridable member, when class is in Service Project
问题 I am trying to unit test this class ServizioController : public class ServizioController : IServizioController { public virtual void PerformAction(Super.Core.Servizio servizio) { } public virtual bool Start() { throw new NotImplementedException(); } public virtual bool Stop() { throw new NotImplementedException(); } public virtual bool Continue() { throw new NotImplementedException(); } } It goes fine if this class is part of a test or a library project. But When it is in the Service Project,