示例#1
0
        public void NestedRotor_ReverseMappslettersWithOffsetZero()
        {
            char        expected = 'A';
            NestedRotor Rotor_I  = CreateRotorI();
            char        actual   = Rotor_I.ReverseConvert('E');

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void NestedRotor_ReverseMappslettersWithRingSetting()
        {
            char        expected = 'A';
            NestedRotor Rotor_I  = CreateRotorI();

            Rotor_I.SetRingSetting('B');
            char actual = Rotor_I.ReverseConvert('K');

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void NestedRotor_ReverseMapsLettersWithOffset27()
        {
            char        expected = 'D';
            NestedRotor Rotor_I  = CreateRotorI();

            Rotor_I.Advance(27);
            char actual = Rotor_I.ReverseConvert('K');

            Assert.AreEqual(expected, actual);
        }