Exemple #1
0
        public void GetMemberNameTest()
        {
            Parser parser = new Parser();
              MemberDeclarationSyntax declaration = parser.GetNode(this.testCodeOriginal, 2);
              string memberName = parser.GetMemberName(declaration);

              Assert.AreEqual("CurrentUserOid", memberName);
        }
Exemple #2
0
 public void GetNodeTest()
 {
     Parser parser = new Parser();
       SyntaxNode declaration = parser.GetNode(this.testCodeOriginal, 2);
       Assert.IsTrue(declaration != null);
 }