Exemplo n.º 1
0
 public void CheckRegisters()
 {
     if (Registers.Count() > 2)
     {
         throw new Exceptions.TooManyRegistersException(Registers.Count(), Capture);
     }
     if (!Codes.ContainsKey(RegisterCombination))
     {
         throw new Exceptions.RegisterCombinationNotSupportedException(RegisterCombination, Capture);
     }
 }