static IEnumerable <object[]> GetDataForGenerateDeclarationCodeTest() { var type1 = SolidityType.Bool; string name1 = "NAME1"; Visibility v1 = Visibility.Public; yield return(new object[] { GetContractProperty(type1, name1, v1), $"{type1.GenerateCode(false)} {v1.GenerateCode()} {name1}" }); var type2 = SolidityType.Int; string name2 = "NAME2"; Visibility v2 = Visibility.Private; yield return(new object[] { GetContractProperty(type2, name2, v2), $"{type2.GenerateCode(false)} {v2.GenerateCode()} {name2}" }); var type3 = SolidityType.String; string name3 = "NAME3"; Visibility v3 = Visibility.Private; yield return(new object[] { GetContractProperty(type3, name3, v3), $"{type3.GenerateCode(false)} {v3.GenerateCode()} {name3}" }); }
protected override string GetHeader() => $"{Type.GenerateCode()}() {Visibility.GenerateCode()}{GetPayablePart()} {{\n";