public void write_comment() { var type = new GeneratedType("SomeClass"); type.CommentType("some comment text"); type.Header.ShouldBeOfType <OneLineComment>() .Text.ShouldBe("some comment text"); }