protected Epa NoConstructorsNoActionsEpa() { var constructors = new HashSet <Action>(); var actions = new HashSet <Action>(); var typeDefinition = new StringTypeDefinition("NoConstructorsNoActiosnEpa", constructors, actions); return(new Epa(typeDefinition, new List <Transition>())); }
protected Epa OneConstructorNoActionsEpa() { var constructors = new HashSet <Action>(); var constructor = new StringAction("ctor"); constructors.Add(constructor); var actions = new HashSet <Action>(); var typeDefinition = new StringTypeDefinition("OneConstructorNoActionsEpa", constructors, actions); var transitions = new HashSet <Transition>(); var s1 = new State(constructors, new HashSet <Action>()); var s2 = new State(new HashSet <Action>(), new HashSet <Action>()); transitions.Add(new Transition(constructor, s1, s2, false)); return(new Epa(typeDefinition, transitions.ToList())); }