public void SolveTest4() { var kaprekarRoutine = new KaprekarRoutine(3, 16); string result = kaprekarRoutine.Solve(); Assert.AreEqual(result, "000|7F8|"); }
public void SolveTest2() { var kaprekarRoutine = new KaprekarRoutine(4, 10); string result = kaprekarRoutine.Solve(); Assert.AreEqual(result, "0000|6174|"); }
public void SolveTest() { var kaprekarRoutine = new KaprekarRoutine(4, 10); var n = new Number(4, 10) { [3] = 1, [2] = 2, [1] = 3, [0] = 4 }; var solution = kaprekarRoutine.Solve(n); Assert.AreEqual(solution.ToString(), "6174"); }