コード例 #1
0
 public static void StructureValueDeclarationWithNoPropertiesShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "value of GOLF_ClubMember as $MyAliasIdentifier\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #2
0
 public static void StructureDeclarationWithSuperstructureShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "structure Sponsor : GOLF_MySupestructure\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #3
0
 public static void InstanceValueDeclarationWithAliasShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember as $MyAliasIdentifier\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #4
0
 public static void EmptyInheritedEnumerationDeclarationShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "enumeration MonthsEnum : GOLF_MyEnum\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #5
0
 public static void EmptyStructureDeclarationShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "structure Sponsor\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #6
0
 public static void EmptyStringEnumerationDeclarationShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "enumeration MonthsEnum : String\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #7
0
 public static void EmptyClassDeclarationShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "class GOLF_Base\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #8
0
 public static void EmptyAssociationDeclarationShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "association GOLF_MemberLocker\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #9
0
 public static void EmptyIntegerEnumerationDeclarationShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "enumeration MonthsEnum : Integer\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #10
0
 public static void InstanceValueDeclarationWithNoPropertiesShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #11
0
 public static void MethodDeclarationsWithRefParameterShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "class GOLF_Club\r\n" +
         "{\r\n" +
         "\tInteger GetMembersWithOutstandingFees(GOLF_ClubMember REF lateMembers);\r\n" +
         "};"
         );
 }
コード例 #12
0
 public static void PropertyDeclarationWithDefaultValueShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "class GOLF_Base\r\n" +
         "{\r\n" +
         "\tInteger Severity = 0;\r\n" +
         "};"
         );
 }
コード例 #13
0
 public static void PropertyDeclarationWithArrayTypeShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "class GOLF_Base\r\n" +
         "{\r\n" +
         "\tInteger Severity[];\r\n" +
         "};"
         );
 }
コード例 #14
0
 public static void StringEnumElementWithValueShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "enumeration GOLF_StatesEnum : string\r\n" +
         "{\r\n" +
         "\tAL = \"Alabama\"\r\n" +
         "};"
         );
 }
コード例 #15
0
 public static void LiteralValueArrayWithMultipleItemsShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tLastPaymentDate = {1, 2};\r\n" +
         "};"
         );
 }
コード例 #16
0
 public static void ComplexValuePropertyShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tLastPaymentDate = $MyAliasIdentifier;\r\n" +
         "};"
         );
 }
コード例 #17
0
 public static void QualifierShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "[Description(\"Instances of this class represent golf clubs. A golf club is \" \"an organization that provides member services to golf players \" \"both amateur and professional.\")]\r\n" +
         "class GOLF_Club : GOLF_Base\r\n" +
         "{\r\n" +
         "};"
         );
 }
コード例 #18
0
 public static void ClassFeatureWithPropertyDeclarationShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "class Sponsor\r\n" +
         "{\r\n" +
         "\tstring Name;\r\n" +
         "};"
         );
 }
コード例 #19
0
 public static void ClassFeatureWithQualifiersShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "class Sponsor\r\n" +
         "{\r\n" +
         "\t[Description(\"Monthly salary in $US\")] string Name;\r\n" +
         "};"
         );
 }
コード例 #20
0
 public static void MethodDeclarationsWithArrayReturnTypeShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "class GOLF_Club\r\n" +
         "{\r\n" +
         "\tInteger[] GetMembersWithOutstandingFees(GOLF_ClubMember lateMembers);\r\n" +
         "};"
         );
 }
コード例 #21
0
 public static void MethodDeclarationWithMultipleParametersShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "class GOLF_Professional : GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tGOLF_ResultCodeEnum GetNumberOfProfessionals(Integer NoOfPros, GOLF_Club Club, ProfessionalStatusEnum Status = Professional);\r\n" +
         "};"
         );
 }
コード例 #22
0
 public static void StringLiteralValueShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tLastPaymentDate = \"aaa\";\r\n" +
         "};"
         );
 }
コード例 #23
0
 public static void ComplexValueArrayWithMultipleItemsShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tLastPaymentDate = {$MyAliasIdentifier, $MyOtherAliasIdentifier};\r\n" +
         "};"
         );
 }
コード例 #24
0
 public static void NegativeRealValueShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tCaption = -0.5;\r\n" +
         "};"
         );
 }
コード例 #25
0
 public static void BooleanLiteralValueShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tLastPaymentDate = true;\r\n" +
         "};"
         );
 }
コード例 #26
0
 public static void EnumValueArrayWithMultipleEnumValuesShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_Date\r\n" +
         "{\r\n" +
         "\tMonth = {January, February};\r\n" +
         "};"
         );
 }
コード例 #27
0
 public static void PositiveIntegerValueShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tCaption = +100;\r\n" +
         "};"
         );
 }
コード例 #28
0
 public static void EnumElementWithQualifiersShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "enumeration MonthsEnum : integer\r\n" +
         "{\r\n" +
         "\t[Description(\"myDescription\")] January = 1\r\n" +
         "};"
         );
 }
コード例 #29
0
 public static void RealValueWithNoFractionShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "instance of GOLF_ClubMember\r\n" +
         "{\r\n" +
         "\tCaption = 5.0;\r\n" +
         "};"
         );
 }
コード例 #30
0
 public static void IntegerEnumElementShouldRoundtrip()
 {
     RoundtripTests.AssertRoundtrip(
         "enumeration MonthsEnum : integer\r\n" +
         "{\r\n" +
         "\tJanuary = 1\r\n" +
         "};"
         );
 }