public void TestExplicit() { int foo = 0; Shim shim = Shim.Replace(() => Is.A <MyTest>().ExplicitMethod()).With((MyTest t) => 42); var r = new MyTest(); PoseContext.Isolate(() => { foo = r.Explicitly(); }, shim); Assert.AreEqual(42, foo); }