public RepeatExample()
 {
     this.sut = MockRepository.GenerateStub<ISimpleModel>();
     this.sut.Stub(x => x.Do()).Return(1).Repeat.Once();
     this.sut.Stub(x => x.Do()).Return(2).Repeat.Twice();
     this.sut.Stub(x => x.Do()).Return(3).Repeat.Times(3);
     this.sut.Stub(x => x.Do()).Return(4).Repeat.Times(4);
 }
示例#2
0
 public RepeatExample()
 {
     this.sut = MockRepository.GenerateStub <ISimpleModel>();
     this.sut.Stub(x => x.Do()).Return(1).Repeat.Once();
     this.sut.Stub(x => x.Do()).Return(2).Repeat.Twice();
     this.sut.Stub(x => x.Do()).Return(3).Repeat.Times(3);
     this.sut.Stub(x => x.Do()).Return(4).Repeat.Times(4);
 }
示例#3
0
 public LiteralExample()
 {
     this.sut = MockRepository.GenerateStub <ISimpleModel>();
     this.sut.Stub(x => x.Do(1)).Return(1);
     this.sut.Stub(x => x.Do("Foo")).Return(2);
 }
示例#4
0
 public DecoratorSimpleModel(ISimpleModel decorated)
 {
     _decorated = decorated;
 }
示例#5
0
 public ASimpleStub()
 {
     this.sut = MockRepository.GenerateStub <ISimpleModel>();
     this.sut.Stub(x => x.Do()).Return(1);
 }
 public LiteralExample()
 {
     this.sut = MockRepository.GenerateStub<ISimpleModel>();
     this.sut.Stub(x => x.Do(1)).Return(1);
     this.sut.Stub(x => x.Do("Foo")).Return(2);
 }
示例#7
0
 void Constructor(Text message, Button button, ISimpleModel simpleModel)
 {
     _message     = message;
     _button      = button;
     _simpleModel = simpleModel;
 }
示例#8
0
 public ASimpleStub()
 {
     this.sut = MockRepository.GenerateStub<ISimpleModel>();
     this.sut.Stub(x => x.Do()).Return(1);
 }