Example #1
0
    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))
Example #2
0
    def class_has_internal_visibility(self):
        node = cs.class_("A", [])
        expected = """internal class A {
}
"""
        assert_equal(expected, cs.dumps(node))