Changeset 5698
- Timestamp:
- 03/15/11 18:06:00 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/HeuristicLab.Persistence-3.3.csproj
r5290 r5698 142 142 <Compile Include="Default\CompositeSerializers\CompactNumberArray2StringSerializer.cs" /> 143 143 <Compile Include="Default\CompositeSerializers\ConcreteDictionarySerializer.cs" /> 144 <Compile Include="Default\CompositeSerializers\TupleSerializer.cs" /> 144 145 <Compile Include="Default\CompositeSerializers\HashSetSerializer.cs" /> 145 146 <Compile Include="Default\CompositeSerializers\DictionarySerializer.cs" /> -
trunk/sources/HeuristicLab.Persistence/3.3/Tests/UseCases.cs
r5445 r5698 1243 1243 } 1244 1244 1245 [TestMethod] 1246 public void TupleTest() { 1247 var t1 = Tuple.Create(1); 1248 var t2 = Tuple.Create('1', "2"); 1249 var t3 = Tuple.Create(3.0, 3f, 5); 1250 var t4 = Tuple.Create(Tuple.Create(1, 2, 3), Tuple.Create(4, 5, 6), Tuple.Create(8, 9, 10)); 1251 var tuple = Tuple.Create(t1, t2, t3, t4); 1252 XmlGenerator.Serialize(tuple, tempFile); 1253 var newTuple = XmlParser.Deserialize<Tuple<Tuple<int>, Tuple<char, string>, Tuple<double, float, int>, Tuple<Tuple<int, int, int>, Tuple<int, int, int>, Tuple<int, int, int>>>>(tempFile); 1254 Assert.AreEqual(tuple, newTuple); 1255 } 1256 1245 1257 1246 1258
Note: See TracChangeset
for help on using the changeset viewer.