示例#1
0
        private static void Intercept_instance_method()
        {
            var sut = CreateSut("MockLibrary.SayHello.Speak", typeof(SayHelloMonitor));

            sut.Start();
            var mock = new SayHello("World");

            mock.Speak();
            sut.Stop();
        }