Пример #1
0
 public void It_Should_Return_True_When_Diviable_with_Three()
 {
     _sut = new CounterPredicate();
     _counter.Stub(x => x.GetValue()).Return(3);
     Boolean _result = _sut.IsDividableWithThree(_counter);
     Assert.AreEqual(true,_result);
 }
Пример #2
0
 public AdvancedTimpexPrinterTwo(Printer timpexPrinter, Printer timPrinter, Printer pexPrinter, CounterPredicate counterPredicate, Counter numberCounter)
 {
     _timpexPrinter = timpexPrinter;
     _timPrinter = timPrinter;
     _pexPrinter = pexPrinter;
     _counterPredicate = counterPredicate;
     _numberCounter = numberCounter;
 }
Пример #3
0
 protected override void Act()
 {
     Sut = new CounterPredicate();
 }
Пример #4
0
 public PexPrinter(Counter numberCounter, CounterPredicate counterPredicate)
 {
     _numberCounter = numberCounter;
     _counterPredicate = counterPredicate;
 }
Пример #5
0
 public PexPrinter(Counter numberCounter, CounterPredicate counterPredicate)
 {
     _numberCounter    = numberCounter;
     _counterPredicate = counterPredicate;
 }