Exemplo n.º 1
0
        public void GetStartLineNumber()
        {
            this.textBoxCmd.Text = "if counter=5 then \r\n circle 25 " +
                                   "\r\n rectangle 100,250 \r\n endif";
            int          expectedOutcome = 1;
            int          realOutcome;
            CmdUtilities cmU = new CmdUtilities();

            realOutcome = cmU.GetStartLineNumber("if");
            Assert.AreEqual(expectedOutcome, realOutcome);
        }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     try
     {
         DOMElement_GrammarDefinition.GenerateDOM(CmdUtilities.CreateConfiguration <DOMESettings>(args));
     }
     catch (DOMESyntaxException ex)
     {
         Console.WriteLine("A syntax error occured:");
         Console.WriteLine(ex.GetMessage());
     }
 }