Changeset 6342 for trunk/sources/HeuristicLab.Persistence
- Timestamp:
- 05/30/11 18:07:32 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/histogram (added) merged: 5959,5961,5970,5994-5996,5999,6007,6010-6016,6020,6022,6027-6028,6032,6046,6055-6056,6081-6082,6086-6087,6089,6115,6176,6194-6195,6338-6341
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Persistence
- Property svn:mergeinfo changed
/branches/histogram/HeuristicLab.Persistence (added) merged: 6011,6020,6022,6027-6028,6032,6046,6055,6195,6340
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Persistence/3.3/HeuristicLab.Persistence-3.3.csproj
r6173 r6342 204 204 <Compile Include="Default\Xml\Primitive\SimpleNumber2XmlSerializerBase.cs" /> 205 205 <Compile Include="Default\Xml\Primitive\String2XmlSerializer.cs" /> 206 <Compile Include="Default\Xml\Primitive\System.Drawing\Font2XmlSerializer.cs" /> 206 207 <Compile Include="Default\Xml\Primitive\TimeSpan2XmlSerializer.cs" /> 207 208 <Compile Include="Default\Xml\Primitive\UInt2XmlSerializer.cs" /> -
trunk/sources/HeuristicLab.Persistence/3.3/Tests/UseCases.cs
r5698 r6342 1198 1198 public OneWayTest() { this.value = "default"; } 1199 1199 public string value; 1200 [Storable(AllowOneWay =true)]1200 [Storable(AllowOneWay = true)] 1201 1201 public string ReadOnly { 1202 1202 get { return "ReadOnly"; } 1203 1203 } 1204 [Storable(AllowOneWay =true)]1204 [Storable(AllowOneWay = true)] 1205 1205 public string WriteOnly { 1206 1206 set { this.value = value; } … … 1255 1255 } 1256 1256 1257 [TestMethod] 1258 public void FontTest() { 1259 List<Font> fonts = new List<Font>() { 1260 new Font(FontFamily.GenericSansSerif, 12), 1261 new Font("Times New Roman", 21, FontStyle.Bold, GraphicsUnit.Pixel), 1262 new Font("Courier New", 10, FontStyle.Underline, GraphicsUnit.Document), 1263 new Font("Helvetica", 21, FontStyle.Strikeout, GraphicsUnit.Inch, 0, true), 1264 }; 1265 XmlGenerator.Serialize(fonts, tempFile); 1266 var newFonts = XmlParser.Deserialize<List<Font>>(tempFile); 1267 Assert.AreEqual(fonts[0], newFonts[0]); 1268 Assert.AreEqual(fonts[1], newFonts[1]); 1269 Assert.AreEqual(fonts[2], newFonts[2]); 1270 Assert.AreEqual(fonts[3], newFonts[3]); 1271 } 1272 1257 1273 1258 1274
Note: See TracChangeset
for help on using the changeset viewer.