public override void JustMockLite() { JustMock.Reset(); var thing = JustMock.Create <IThing>(); thing.DoNothing(); }
public override int JustMockLite() { JustMock.Reset(); var thing = JustMock.Create <IThing>(); return(thing.Zero()); }
public override void JustMockLite() { JustMock.Reset(); var thing = JustMock.Create <IThing>(); thing.OneParameter(0); }
public override int JustMockLite() { JustMock.Reset(); var thing = JustMock.Create <IThing>(); JustMock.Arrange(() => thing.One()).Returns(1); return(thing.One()); }
public override void JustMockLite() { JustMock.Reset(); var thing = JustMock.Create <IThing>(); JustMock.Arrange(() => thing.DoSomething()); thing.DoSomething(); JustMock.Assert(thing); }
public override bool JustMockLite() { JustMock.Reset(); var called = false; var thing = JustMock.Create <IThing>(); JustMock.Arrange(() => thing.DoSomething()).DoInstead(() => called = true); thing.DoSomething(); return(called); }
public override IThing JustMockLite() { JustMock.Reset(); return(JustMock.Create <IThing>()); }