Exemple #1
0
 public Timpex(TimpexPredicate timpexPredicate, CounterPrinter counterPrinter, TimpexPrinter timpexPrinter, Counter counter)
 {
     _timpexPredicate = timpexPredicate;
     _counterPrinter  = counterPrinter;
     _timpexPrinter   = timpexPrinter;
     _counter         = counter;
 }
Exemple #2
0
 protected override void Arrange()
 {
     base.Arrange();
     base.Act();
     Counter.Stub(x => x.Count).Return(2);
     TimpexPredicate.Stub(x => x.Matches(Counter)).Return(false);
     CounterPrinter.Stub(x => x.Print(Counter)).Return("2");
 }
Exemple #3
0
 protected override void Arrange()
 {
     base.Arrange();
     base.Act();
     Counter.Stub(x => x.Count).Return(3);
     TimpexPredicate.Stub(x => x.Matches(Counter)).Return(false);
     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");
 }
Exemple #4
0
 public AdvancedWordPrinter(HandlerBase handlerBase, TimpexPredicate timpexPredicate, WordAndCountPrinter wordAndCountPrinter, SimpleWordPrinter simpleWordPrinter)
 {
     _timpexPredicate     = timpexPredicate;
     _handlerBase         = handlerBase;
     _wordAndCountPrinter = wordAndCountPrinter;
 }