Exemplo n.º 1
0
        public void testFullyQualifiedName()
        {
            QualifiedName qn = new Parsable("  hello.world").ConsumeQualifiedName();

            Assert.AreEqual("hello", qn.Scope);
            Assert.AreEqual("world", qn.Name);
            Assert.AreEqual("hello.world", qn.ToString());
        }
Exemplo n.º 2
0
        public void testSimpleQualifiedName()
        {
            QualifiedName qn = new Parsable("  hello").ConsumeQualifiedName();

            Assert.IsNull(qn.Scope);
            Assert.AreEqual("hello", qn.Name);
            Assert.AreEqual("hello", qn.ToString());
        }