Package list ohcount / 6c6b3496-5c95-4881-94ad-331592f9fd83/main test / unit / parsers / test_csharp.h
6c6b3496-5c95-4881-94ad-331592f9fd83/main

Tree @6c6b3496-5c95-4881-94ad-331592f9fd83/main (Download .tar.gz)

test_csharp.h @6c6b3496-5c95-4881-94ad-331592f9fd83/mainraw · history · blame

void test_csharp_comments() {
  test_parser_verify_parse(
    test_parser_sourcefile("csharp", " //comment"),
    "csharp", "", "//comment", 0
  );
}

void test_csharp_comment_entities() {
  test_parser_verify_entity(
    test_parser_sourcefile("csharp", " //comment"),
    "comment", "//comment"
  );
  test_parser_verify_entity(
    test_parser_sourcefile("csharp", " /*comment*/"),
    "comment", "/*comment*/"
  );
}

void all_csharp_tests() {
  test_csharp_comments();
  test_csharp_comment_entities();
}