Beispiel #1
0
 public void ParseReferenceNameWithUnnecessaryEnd()
 {
     ReferenceParser parser = new ReferenceParser();
     Check(parser.ParseModule("Arp.Common "));
     Check(parser.ParseModule("Arp.Common;"));
     Check(parser.ParseModule("Arp.Common\""));
     Check(parser.ParseModule("Arp.Common&%"));
 }
Beispiel #2
0
        private void ParseWithoutIdentifier(ReferenceParser parser, string text)
        {
            try
            {

                parser.ParseModule(text);
            }
            catch (UnexpectedToken ex)
            {
                ReferenceModule referenceName = (ReferenceModule)ex.ParsingResult;

                CheckWithoutIdentifier(referenceName);
                return;
            }

            Assert.Fail("Expected UnexpectedToken exception");
        }
Beispiel #3
0
 public void ParseReferenceNameSuccess()
 {
     ReferenceParser parser = new ReferenceParser();
     ReferenceModule referenceName = parser.ParseModule("Arp.Common");
     Check(referenceName);
 }