public void CanFindDigitsOfANumber(int number, int[] expected) { var sut = new MathUtil(); var actual = sut.GetDigits(number); Assert.Equal(expected, actual); }
public void ShouldFindSumOfDivisorsForNumber(int expected, int number) { var sut = new MathUtil(); var actual = sut.GetSumOfDivisors(number); Assert.Equal(expected, actual); }
public AbundantSum(MathUtil mathUtil) { this._mathUtil = mathUtil; }
public PalindromeFinder(MathUtil mathUtil) { this._mathUtil = mathUtil; }
public LexicographicPermutation(MathUtil mathUtil) { this._mathUtil = mathUtil; }
public DigitPowerFinder(MathUtil mathUtil) { this._mathUtil = mathUtil; }
public AmicableNumberFinder(MathUtil util) { this._mathUtil = util; }
public ReciprocalCycle(PrimeFactorFinder primeFactorFinder) { this._primeFactorFinder = primeFactorFinder; this._mathUtil = new MathUtil(); }