Closed mikeclayton closed 3 years ago
Related to #72.
At the moment the literal strings as "expected" output from the AstMofGenerator are pretty ugly - e.g.
AstMofGenerator
AssociationDeclarationWithSuperAssociationShouldRoundtrip()
var sourceText = "association GOLF_MemberLocker : GOLF_Base\r\n" + "{\r\n" + "\tGOLF_ClubMember REF Member;\r\n" + "\tGOLF_Locker REF Locker;\r\n" + "\tGOLF_Date AssignedOnDate;\r\n" + "};";
It would be nice if we could do something like this instead with a multi-line string that uses a custom indent - e.g. " " vs "\t"
var sourceText = @" association GOLF_MemberLocker : GOLF_Base { GOLF_ClubMember REF Member; GOLF_Locker REF Locker; GOLF_Date AssignedOnDate; }; @";
Note the literal string will have additional indenting and leading / trailing line breaks - e.g.:
association GOLF_MemberLocker : GOLF_Base { GOLF_ClubMember REF Member; GOLF_Locker REF Locker; GOLF_Date AssignedOnDate; };
so we might need a couple of helper functions to remove the indent and line breaks so the resulting string is:
Related to #72.
At the moment the literal strings as "expected" output from the
AstMofGenerator
are pretty ugly - e.g.AssociationDeclarationWithSuperAssociationShouldRoundtrip()
It would be nice if we could do something like this instead with a multi-line string that uses a custom indent - e.g. " " vs "\t"
Note the literal string will have additional indenting and leading / trailing line breaks - e.g.:
so we might need a couple of helper functions to remove the indent and line breaks so the resulting string is: