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); }
protected override void Act() { Sut = new SimpleWordPrinter(WordConcatenating); }
public AdvancedWordPrinter(HandlerBase handlerBase, TimpexPredicate timpexPredicate, WordAndCountPrinter wordAndCountPrinter, SimpleWordPrinter simpleWordPrinter) { _timpexPredicate = timpexPredicate; _handlerBase = handlerBase; _wordAndCountPrinter = wordAndCountPrinter; }