public void EncodeNumbersGreaterTwentyFive() { //letters: XYZ int[] input = { 23, 24, 25 }; //letter's shift int shift = 6; int[] expected = { 3, 4, 5 }; CipherSolver c = new CipherSolver(); var actualOutput = c.EncodeNumbers(input, shift); CollectionAssert.AreEqual(expected, actualOutput); }
public void EncodeNumbers() { //word: hello int[] input = { 7, 4, 11, 11, 14 }; int[] expected = { 10, 7, 14, 14, 17 }; // Amount of letter's shift int shiftKey = 3; CipherSolver c = new CipherSolver(); var actualOutput = c.EncodeNumbers(input, shiftKey); CollectionAssert.AreEqual(expected, actualOutput); }