public void TestMoqNoUnity() { var m = new Mock<IWorker>(); m.Setup(f => f.DoWork(It.IsAny<string>())) .Callback<string>(str => { Debug.WriteLine("MoqWorker: " + str); }); var mgr = new WorkerManager(m.Object); mgr.WorkerDoWork("TestMoqNoUnity"); }