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);
    }
Esempio n. 4
0
    public override int JustMockLite()
    {
        JustMock.Reset();
        var thing = JustMock.Create <IThing>();

        JustMock.Arrange(() => thing.One()).Returns(1);
        return(thing.One());
    }
Esempio n. 5
0
    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);
    }
Esempio n. 7
0
 public override IThing JustMockLite()
 {
     JustMock.Reset();
     return(JustMock.Create <IThing>());
 }