public void Test_GetInt() { Assert.AreEqual(0, EnigmaHelper.GetInt('A')); Assert.AreEqual(4, EnigmaHelper.GetInt('E')); Assert.AreEqual(25, EnigmaHelper.GetInt('Z')); }
public char Encipher(char input) { return(EnigmaHelper.GetCharCyclic(EnigmaHelper.GetInt(input) + shift)); }
public void Test_GetChar() { Assert.AreEqual(0, EnigmaHelper.GetInt('A')); Assert.AreEqual(16, EnigmaHelper.GetInt('Q')); Assert.AreEqual(25, EnigmaHelper.GetInt('Z')); }
public char Encipher(char input) { return(mapping[EnigmaHelper.GetInt(input)]); }