示例#1
0
        public VerifyOnly()
        {
            stub = new ThingStub();
            stub.DoSomething();

            fake = A.Fake <IThingy>();
            fake.DoSomething();

            mock = new Mock <IThingy>();
            mock.Object.DoSomething();

            sub = Substitute.For <IThingy>();
            sub.DoSomething();

            rock = Rock.Create <IThingy>();
            rock.Handle(r => r.DoSomething());
            rock.Make().DoSomething();
        }
示例#2
0
 public static void Foo(this IRock <ITarget> @this, Argument <int> a) =>
 @this.Handle(_ => _.Foo(a.Value));