static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; if (args.Length==0) { throw new ArgumentNullException(nameof(args),"no file to parse"); } //var ussd = new UssdXml("myapp.xml"); var ussd = new UssdXml(args[0]); ussd.Parse(); Console.Clear(); //ussd.GenerateUssdControllerDll("SimpleProgram"); // ussd.GenerateUssdControllerDll(); ussd.RunSimulator(); Console.ReadLine(); }
public void IsEmpty() { var ussd = new UssdXml(@"SourceFiles\empty-file.xml"); }
public void HasInvalidExtension() { var ussd = new UssdXml("invalid-extension.notxml"); }
public void IsNotFound() { var ussd = new UssdXml("not-found.xml"); }