public void MocksCanBeVerified_NotCalledNotVerified() { var m1 = new Mock <Foo>(); var m2 = new Mock <Bus>(); m1.Setup(f => f.TestFoo()).Verifiable(); var m = new MockProvider(m1); m.Add(m2); var foo = m.GetRequiredService <Foo>(); try { m.Verify(); } catch (MockException e) { Assert.IsTrue(e.IsVerificationError); Assert.IsTrue(e.Message.Contains("TestFoo")); } }