def class_body_is_written_out(self): node = cs.class_("A", [cs.method("Main", [], [])]) expected = """internal class A { internal dynamic Main() { } } """ assert_equal(expected, cs.dumps(node))
def class_has_internal_visibility(self): node = cs.class_("A", []) expected = """internal class A { } """ assert_equal(expected, cs.dumps(node))