Пример #1
0
 protected override void Arrange()
 {
     base.Arrange();
     base.Act();
     Counter.Stub(x => x.Count).Return(3);
     TimpexPredicate.Stub(x => x.Matches(Counter)).Return(true);
     HandlerBase.Stub(x => x.HandleWordBasedOnCounter(Counter)).Return(PexWord);
     ActualWord.Stub(x => x.Value()).Return("tim");
     WordAndCountPrinter.Stub(x => x.Print(Counter, ActualWord)).Return("tim 3");
     SimpleWordPrinter.Stub(x => x.Print(ActualWord, PexWord)).Return(Expected);
 }
Пример #2
0
 protected override void Act()
 {
     Sut = new SimpleWordPrinter(WordConcatenating);
 }
Пример #3
0
 protected override void Act()
 {
     Sut = new SimpleWordPrinter(WordConcatenating);
 }
Пример #4
0
 public AdvancedWordPrinter(HandlerBase handlerBase, TimpexPredicate timpexPredicate, WordAndCountPrinter wordAndCountPrinter, SimpleWordPrinter simpleWordPrinter)
 {
     _timpexPredicate     = timpexPredicate;
     _handlerBase         = handlerBase;
     _wordAndCountPrinter = wordAndCountPrinter;
 }