Ejemplo n.º 1
0
        public void UnsteckeredPairsNotTranslated()
        {
            char         expected = 'A';
            Steckerbrett board    = new Steckerbrett();
            char         actual   = board.Translate('A');

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void SteckeredPairsReverseTranslate()
        {
            char         expected = 'A';
            Steckerbrett board    = new Steckerbrett();

            board.Stecker('A', 'B');
            char actual = board.Translate('B');

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 3
0
 public EnigmaI()
 {
     _rotorAssembly = new RachetedRotorAssembly();
     _procedure     = new CryptProcedure();
     _plugboard     = new Steckerbrett();
 }
Ejemplo n.º 4
0
 public NestedEnigmaMachine()
 {
     _plugboard = new Steckerbrett();
 }
Ejemplo n.º 5
0
        public void CanWirePairs()
        {
            Steckerbrett board = new Steckerbrett();

            board.Stecker('A', 'B');
        }
Ejemplo n.º 6
0
 public void CanInitPlugboard()
 {
     Steckerbrett board = new Steckerbrett();
 }