public void TestMethod1() { MyClassTestWrapped t = new MyClassTestWrapped(); Assert.IsTrue(t.MyPrivateMethod(...)); Assert.IsTrue(t.MyMethod(...)); }
public void TestMethod1() { MyClassTestWrapped t = new MyClassTestWrapped(); Assert.IsTrue(t.MyPrivateMethod(...)); Assert.IsTrue(t.MyMethod(...)); MockFactory _factory = new MockFactory(); Mock <MyClassTestWrapped> mock; mock = _factory.CreateMock <MyClass>(); mock.Expects.One.MethodWith(d => d.MyPrivateMethod()); // do the nmock magic here }