public void IgnoreBracesInCharLiteral()
 {
     String input = "callF(']')";
       var extractor = new CBraceScanner();
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(2, chars.Count);
 }
 public void CanExtractParens()
 {
     String input = @"(x*(y+7))";
       var extractor = new CBraceScanner();
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(4, chars.Count);
 }
 public void CanExtractBrackets()
 {
     String input = @"x[y[0]]";
       var extractor = new CBraceScanner();
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(4, chars.Count);
 }
 public void CanExtractBracesFollowingCpp14QuoteInIntLiteralHex()
 {
     String input = @"if ( x == 0x80'00 ) { }";
       var extractor = new CBraceScanner();
       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 CBraceScanner();
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(0, chars.Count);
 }
 public void IgnoreBracesInString()
 {
     String input = "callF(\"some (string)\")";
       var extractor = new CBraceScanner();
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(2, chars.Count);
 }
 public void IgnoreBracesInSingleLineComment()
 {
     String input = @"
     callF(1);
     // callCommented(2);
     ";
       var extractor = new CBraceScanner();
       var chars = Extract(extractor, input.Trim(), 0, 0);
       Assert.Equal(2, chars.Count);
 }