Пример #1
0
        public void If_NotCalculated_Then_CallCalculationFunction()
        {
            _helper.GetValue(42, TestCalculationCallback);

            Assert.AreEqual(1, _calculatedValues.Count);
            Assert.AreEqual(42, _calculatedValues[0]);
        }
 public override int GetCount(Corpus corpus, int j)
 {
     return(_memoizationHelper.GetValue(j, (index) => base.GetCount(corpus, index)));
 }