Ejemplo n.º 1
0
        static void Run(ActionPolicy policy, Action <Mock <ISpy> > verify)
        {
            var spy = Pleasure.Spy();

            spy.Setup(r => r.Is()).Throws <ArgumentException>();
            var exception = Catch.Exception(() => policy.Do(() => spy.Object.Is()));

            exception.ShouldNotBeNull();
            verify(spy);
        }