public void IgnoreBracesInCharLiteral()
 {
     String input = "callF(']')";
       var extractor = new CBraceExtractor(BraceList);
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(2, chars.Count);
 }
 public void IgnoreBracesInAtString()
 {
     String input = "callF(@\"some (string)\")";
       var extractor = new CBraceExtractor(BraceList);
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(2, chars.Count);
 }
 public void CanExtractParens()
 {
     String input = @"(x*(y+7))";
       var extractor = new CBraceExtractor(BraceList);
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(4, chars.Count);
 }
 public void CanExtractBrackets()
 {
     String input = @"x[y[0]]";
       var extractor = new CBraceExtractor(BraceList);
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(4, chars.Count);
 }
 public void IgnoreBracesInMultilineComment()
 {
     String input = @"
     /* callF(1);
     callCommented2(4);
     */
     ";
       var extractor = new CBraceExtractor(BraceList);
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(0, chars.Count);
 }
 public void IgnoreBracesInSingleLineComment()
 {
     String input = @"
     callF(1);
     // callCommented(2);
     ";
       var extractor = new CBraceExtractor(BraceList);
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(2, chars.Count);
 }