예제 #1
0
 public Timpex(TimpexPredicate timpexPredicate, CounterPrinter counterPrinter, TimpexPrinter timpexPrinter, Counter counter)
 {
     _timpexPredicate = timpexPredicate;
     _counterPrinter  = counterPrinter;
     _timpexPrinter   = timpexPrinter;
     _counter         = counter;
 }
예제 #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");
 }
예제 #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");
 }
예제 #4
0
 public AdvancedWordPrinter(HandlerBase handlerBase, TimpexPredicate timpexPredicate, WordAndCountPrinter wordAndCountPrinter, SimpleWordPrinter simpleWordPrinter)
 {
     _timpexPredicate     = timpexPredicate;
     _handlerBase         = handlerBase;
     _wordAndCountPrinter = wordAndCountPrinter;
 }