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);
    }
Пример #4
0
    public override int JustMockLite()
    {
        JustMock.Reset();
        var thing = JustMock.Create <IThing>();

        JustMock.Arrange(() => thing.One()).Returns(1);
        return(thing.One());
    }
Пример #5
0
    public override void JustMockLite()
    {
        JustMock.Reset();
        var thing = JustMock.Create <IThing>();

        JustMock.Arrange(() => thing.DoSomething());
        thing.DoSomething();
        JustMock.Assert(thing);
    }
Пример #6
0
    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);
    }
Пример #7
0
 public override IThing JustMockLite()
 {
     JustMock.Reset();
     return(JustMock.Create <IThing>());
 }