Changeset 15035 for branches/PersistenceReintegration/HeuristicLab.Tests/HeuristicLab.Persistence-3.3
- Timestamp:
- 06/16/17 13:36:53 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/UseCasesPersistenceNew.cs
r15034 r15035 2157 2157 [Storable] 2158 2158 public int y; 2159 2160 [Storable] 2161 public string s; 2159 2162 } 2160 2163 … … 2184 2187 [Storable] 2185 2188 public Point coords; 2189 2190 [Storable(Name = "s")] 2191 public string StorableString { get; set; } 2186 2192 } 2187 2193 … … 2202 2208 [Storable] 2203 2209 public Point coords; 2210 2211 [Storable(Name = "s", AllowOneWay = true)] 2212 public string StorableString { set { PublicString = value; } } 2213 public string PublicString { get; set; } 2204 2214 } 2205 2215 … … 2253 2263 var dv = new DoubleValue(1.0); 2254 2264 p.items = new ItemCollection<IItem>(new IItem[] { dv, dv, p.a }); 2265 p.s = "123"; 2255 2266 return p; 2256 2267 }); … … 2277 2288 // Assert.AreSame(restored.items[0], restored.items[1]); 2278 2289 Assert.AreSame(restored, restored.mySelf); 2279 2290 Assert.AreEqual(restored.PublicString, old.s); 2280 2291 //string msg = Profile(test); 2281 2292 //Console.WriteLine(msg);
Note: See TracChangeset
for help on using the changeset viewer.