Exemplo n.º 1
0
 public static void EnsureAutomataIsOfType(this Automata automata, AutomataType automataType, Exception throwException)
 {
     ValidationUtils.EnsureEquals(
         automataType.ToString(),
         automata.GetAutomataType().ToString(),
         throwException
         );
 }
Exemplo n.º 2
0
 public static void EnsureSymbolIsSpontaneous(this Automata automata, String symbol)
 {
     ValidationUtils.EnsureEquals(
         Automata.SYMBOL_SPONTANEOUS_TRANSITION,
         symbol, new InvalidValueException(
             symbol
             )
         );
 }