Changeset 14711 for branches/PersistenceOverhaul/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/UseCases.cs
- Timestamp:
- 03/03/17 11:41:43 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/UseCases.cs
r13386 r14711 46 46 namespace HeuristicLab.Persistence.Tests { 47 47 48 [Storable Class("777E5793-7389-4109-A617-D7D6EB74A2C7")]48 [StorableType("777E5793-7389-4109-A617-D7D6EB74A2C7")] 49 49 public class NumberTest { 50 50 [Storable] … … 95 95 } 96 96 97 [Storable Class("2911C342-74AB-4B47-9840-87F012AEF0C1")]97 [StorableType("2911C342-74AB-4B47-9840-87F012AEF0C1")] 98 98 public class NonDefaultConstructorClass { 99 99 [Storable] … … 104 104 } 105 105 106 [Storable Class("8621F4FA-8711-4DA4-A50B-7D04683440B8")]106 [StorableType("8621F4FA-8711-4DA4-A50B-7D04683440B8")] 107 107 public class IntWrapper { 108 108 … … 127 127 } 128 128 129 [Storable Class("0B93C65E-1A4C-45DD-B40D-7614BA2B2ABA")]129 [StorableType("0B93C65E-1A4C-45DD-B40D-7614BA2B2ABA")] 130 130 public class PrimitivesTest : NumberTest { 131 131 [Storable] … … 159 159 public enum TestEnum { va1, va2, va3, va8 } ; 160 160 161 [Storable Class("0DA4A6A5-0280-4F3C-80DA-0AB09461F66C")]161 [StorableType("0DA4A6A5-0280-4F3C-80DA-0AB09461F66C")] 162 162 public class RootBase { 163 163 [Storable] … … 178 178 } 179 179 180 [Storable Class("12CC2626-A1E2-45A5-9761-902333C88CCF")]180 [StorableType("12CC2626-A1E2-45A5-9761-902333C88CCF")] 181 181 public class Root : RootBase { 182 182 [Storable] … … 213 213 public enum TrickyEnum { zero = 0, one = 1, two = 2 } 214 214 215 [Storable Class("04BFD8AF-AB93-457A-B5CD-F2AB2B18874F")]215 [StorableType("04BFD8AF-AB93-457A-B5CD-F2AB2B18874F")] 216 216 public class EnumTest { 217 217 [Storable] … … 223 223 } 224 224 225 [Storable Class("41E5C615-82A6-4844-B6A4-4DB8ED8C03D8")]225 [StorableType("41E5C615-82A6-4844-B6A4-4DB8ED8C03D8")] 226 226 public class Custom { 227 227 [Storable] … … 233 233 } 234 234 235 [Storable Class("3D2455E6-0AD9-4141-B44A-759F71491443")]235 [StorableType("3D2455E6-0AD9-4141-B44A-759F71491443")] 236 236 public class Manager { 237 237 … … 246 246 } 247 247 248 [Storable Class("D8D40F6E-91DC-4E20-8154-F95C0AF32CC8")]248 [StorableType("D8D40F6E-91DC-4E20-8154-F95C0AF32CC8")] 249 249 public class C { 250 250 [Storable] … … 486 486 } 487 487 488 [Storable Class("B2C78E8F-32F9-43BE-9DED-219F102125EB")]488 [StorableType("B2C78E8F-32F9-43BE-9DED-219F102125EB")] 489 489 public class NestedType { 490 490 [Storable] … … 758 758 } 759 759 760 [Storable Class("2B2FE809-CDA4-4BCD-BF4C-35F757678AB9")]760 [StorableType("2B2FE809-CDA4-4BCD-BF4C-35F757678AB9")] 761 761 class Child { 762 762 [Storable] … … 764 764 } 765 765 766 [Storable Class("C8F4E805-26DF-4129-910E-F7F51E4DDE41")]766 [StorableType("C8F4E805-26DF-4129-910E-F7F51E4DDE41")] 767 767 class Parent { 768 768 [Storable] … … 770 770 } 771 771 772 [Storable Class("0CF63740-F8C1-46EE-A3A0-7E350A8EBAA1")]772 [StorableType("0CF63740-F8C1-46EE-A3A0-7E350A8EBAA1")] 773 773 class GrandParent { 774 774 [Storable] … … 848 848 } 849 849 850 [Storable Class("F5920537-7F03-41C4-8061-8F8D7CDDB6BE")]850 [StorableType("F5920537-7F03-41C4-8061-8F8D7CDDB6BE")] 851 851 private class PersistenceHooks { 852 852 [Storable] … … 885 885 } 886 886 887 [Storable Class("935C5ECB-ACEF-48EA-93BC-4B4177DFE0A5")]887 [StorableType("935C5ECB-ACEF-48EA-93BC-4B4177DFE0A5")] 888 888 private class CustomConstructor { 889 889 public string Value = "none"; … … 909 909 } 910 910 911 [Storable Class("31D7CE01-E390-40CF-B9BF-BD79A8F850DA")]911 [StorableType("31D7CE01-E390-40CF-B9BF-BD79A8F850DA")] 912 912 public class ExplodingDefaultConstructor { 913 913 public ExplodingDefaultConstructor() { … … 961 961 } 962 962 963 [Storable Class("9DEE1F8F-320C-401B-8103-65FBA6BD4F07")]963 [StorableType("9DEE1F8F-320C-401B-8103-65FBA6BD4F07")] 964 964 public class HookInheritanceTestBase { 965 965 [Storable] … … 972 972 } 973 973 974 [Storable Class("97DF2931-2B23-4FAA-8E59-806FA58ADAED")]974 [StorableType("97DF2931-2B23-4FAA-8E59-806FA58ADAED")] 975 975 public class HookInheritanceTestDerivedClass : HookInheritanceTestBase { 976 976 [Storable] … … 994 994 } 995 995 996 [Storable Class(StorableClassType.AllFields, "6207E4E1-4CFC-4890-9741-33B7E1E43F26")]996 [StorableType(StorableMemberSelection.AllFields, "6207E4E1-4CFC-4890-9741-33B7E1E43F26")] 997 997 public class AllFieldsStorable { 998 998 public int Value1 = 1; … … 1015 1015 [TestCategory("Persistence")] 1016 1016 [TestProperty("Time", "short")] 1017 public void TestStorable ClassDiscoveryAllFields() {1017 public void TestStorableTypeDiscoveryAllFields() { 1018 1018 AllFieldsStorable afs = new AllFieldsStorable(false); 1019 1019 XmlGenerator.Serialize(afs, tempFile); … … 1025 1025 } 1026 1026 1027 [Storable Class(StorableClassType.AllProperties, "ADDB5A7C-4BA9-4E5F-BFAF-2B48C8646808")]1027 [StorableType(StorableMemberSelection.AllProperties, "ADDB5A7C-4BA9-4E5F-BFAF-2B48C8646808")] 1028 1028 public class AllPropertiesStorable { 1029 1029 public int Value1 = 1; … … 1046 1046 [TestCategory("Persistence")] 1047 1047 [TestProperty("Time", "short")] 1048 public void TestStorable ClassDiscoveryAllProperties() {1048 public void TestStorableTypeDiscoveryAllProperties() { 1049 1049 AllPropertiesStorable afs = new AllPropertiesStorable(false); 1050 1050 XmlGenerator.Serialize(afs, tempFile); … … 1057 1057 } 1058 1058 1059 [Storable Class(StorableClassType.AllFieldsAndAllProperties, "9C6136CB-A9AC-4527-B41A-7A2DB50ACE53")]1059 [StorableType(StorableMemberSelection.AllFieldsAndAllProperties, "9C6136CB-A9AC-4527-B41A-7A2DB50ACE53")] 1060 1060 public class AllFieldsAndAllPropertiesStorable { 1061 1061 public int Value1 = 1; … … 1078 1078 [TestCategory("Persistence")] 1079 1079 [TestProperty("Time", "short")] 1080 public void TestStorable ClassDiscoveryAllFieldsAndAllProperties() {1080 public void TestStorableTypeDiscoveryAllFieldsAndAllProperties() { 1081 1081 AllFieldsAndAllPropertiesStorable afs = new AllFieldsAndAllPropertiesStorable(false); 1082 1082 XmlGenerator.Serialize(afs, tempFile); … … 1088 1088 } 1089 1089 1090 [Storable Class(StorableClassType.MarkedOnly, "75C9F6F0-1B2E-41E7-A327-AF9CF5C87D8D")]1090 [StorableType(StorableMemberSelection.MarkedOnly, "75C9F6F0-1B2E-41E7-A327-AF9CF5C87D8D")] 1091 1091 public class MarkedOnlyStorable { 1092 1092 public int Value1 = 1; … … 1109 1109 [TestCategory("Persistence")] 1110 1110 [TestProperty("Time", "short")] 1111 public void TestStorable ClassDiscoveryMarkedOnly() {1111 public void TestStorableTypeDiscoveryMarkedOnly() { 1112 1112 MarkedOnlyStorable afs = new MarkedOnlyStorable(false); 1113 1113 XmlGenerator.Serialize(afs, tempFile); … … 1248 1248 } 1249 1249 1250 [Storable Class("A603ABE6-86DB-46F7-AF87-C7B40E4FF169")]1250 [StorableType("A603ABE6-86DB-46F7-AF87-C7B40E4FF169")] 1251 1251 public class ReadOnlyFail { 1252 1252 [Storable] … … 1272 1272 1273 1273 1274 [Storable Class("7EDE1D86-C8F5-4B51-846F-1634C0FE20BB")]1274 [StorableType("7EDE1D86-C8F5-4B51-846F-1634C0FE20BB")] 1275 1275 public class WriteOnlyFail { 1276 1276 [Storable] … … 1295 1295 } 1296 1296 1297 [Storable Class("65B13830-5D60-4C3F-8D9E-5DCDF1E3A977")]1297 [StorableType("65B13830-5D60-4C3F-8D9E-5DCDF1E3A977")] 1298 1298 public class OneWayTest { 1299 1299 public OneWayTest() { this.value = "default"; }
Note: See TracChangeset
for help on using the changeset viewer.