public void ConvertLetter_ShouldGetLetterAndRotate_WhenConvertingByIndex()
        {
            // Arrange
            Rotor rotor = new Rotor("BDFHJLCPRTXVZNYEIWGAKMUSQO".ToLower(), true, 21);

            // Act
            rotor.SetDial('z');
            char letter = rotor.ConvertLetter(1);

            // Assert
            Assert.AreEqual('d', letter);
            Assert.AreEqual('f', rotor.ConvertLetter(1));
            Assert.AreEqual('h', rotor.ConvertLetter(1));
            Assert.AreEqual('j', rotor.ConvertLetter(1));
            Assert.AreEqual('l', rotor.ConvertLetter(1));
        }
        public void ConvertLetter_ShouldConvert_WhenConvertingByLetterA()
        {
            // Arrange
            Rotor rotor = new Rotor("BDFHJLCPRTXVZNYEIWGAKMUSQO".ToLower(), true, 21); // rotor 3

            // Act
            rotor.SetDial('z');
            char letter = rotor.ConvertLetter('a');

            // Assert
            Assert.AreEqual('b', letter);
            Assert.AreEqual('d', rotor.ConvertLetter('a'));
            Assert.AreEqual('f', rotor.ConvertLetter('a'));
            Assert.AreEqual('h', rotor.ConvertLetter('a'));
            Assert.AreEqual('j', rotor.ConvertLetter('a'));
            Assert.AreEqual('l', rotor.ConvertLetter('a'));
            Assert.AreEqual('c', rotor.ConvertLetter('a'));
            Assert.AreEqual('p', rotor.ConvertLetter('a'));
            Assert.AreEqual('r', rotor.ConvertLetter('a'));
            Assert.AreEqual('t', rotor.ConvertLetter('a'));
            Assert.AreEqual('x', rotor.ConvertLetter('a'));
            Assert.AreEqual('v', rotor.ConvertLetter('a'));
            Assert.AreEqual('z', rotor.ConvertLetter('a'));
            Assert.AreEqual('n', rotor.ConvertLetter('a'));
            Assert.AreEqual('y', rotor.ConvertLetter('a'));
            Assert.AreEqual('e', rotor.ConvertLetter('a'));
            Assert.AreEqual('i', rotor.ConvertLetter('a'));
            Assert.AreEqual('w', rotor.ConvertLetter('a'));
            Assert.AreEqual('g', rotor.ConvertLetter('a'));
            Assert.AreEqual('a', rotor.ConvertLetter('a'));
            Assert.AreEqual('k', rotor.ConvertLetter('a'));
            Assert.AreEqual('m', rotor.ConvertLetter('a'));
            Assert.AreEqual('u', rotor.ConvertLetter('a'));
            Assert.AreEqual('s', rotor.ConvertLetter('a'));
            Assert.AreEqual('q', rotor.ConvertLetter('a'));
            Assert.AreEqual('o', rotor.ConvertLetter('a'));
            Assert.AreEqual('b', rotor.ConvertLetter('a'));
        }