Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1569 for trunk/sources


Ignore:
Timestamp:
04/16/09 16:08:45 (16 years ago)
Author:
epitzer
Message:

Update persistence tests. (#548)

Location:
trunk/sources/HeuristicLab.Persistence/Test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/Test/HeuristicLab.Persistence.Test.csproj

    r1542 r1569  
    8080    <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
    8181      <SpecificVersion>False</SpecificVersion>
    82       <HintPath>..\HeuristicLab.Tracing\3.2\libs\debug\log4net.dll</HintPath>
     82      <HintPath>..\..\HeuristicLab.Tracing\3.2\libs\debug\log4net.dll</HintPath>
    8383    </Reference>
    8484    <Reference Include="System" />
     
    8989  </ItemGroup>
    9090  <ItemGroup>
    91     <ProjectReference Include="..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
     91    <ProjectReference Include="..\3.3\HeuristicLab.Persistence-3.3.csproj">
    9292      <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>
    9393      <Name>HeuristicLab.Persistence-3.3</Name>
    9494    </ProjectReference>
    95     <ProjectReference Include="..\HeuristicLab.Tracing\3.2\HeuristicLab.Tracing-3.2.csproj">
     95    <ProjectReference Include="..\..\HeuristicLab.Tracing\3.2\HeuristicLab.Tracing-3.2.csproj">
    9696      <Project>{EE2034D9-6E27-48A1-B855-42D45F69A4FC}</Project>
    9797      <Name>HeuristicLab.Tracing-3.2</Name>
  • trunk/sources/HeuristicLab.Persistence/Test/NewSerializationTest.cs

    r1566 r1569  
    99using log4net;
    1010using log4net.Config;
    11 using HeuristicLab.Persistence.Default.ViewOnly;
     11using HeuristicLab.Persistence.Default.DebugString;
    1212
    1313namespace HeuristicLab.Persistence.Test {
     
    7070    public Root r;
    7171    [Storable]
    72     public string name = "Serial";
     72    public string name = "<![CDATA[<![CDATA[Serial]]>]]>";
    7373  }
    7474
     
    186186      XmlGenerator.Serialize(r, "test.zip");
    187187      object o = XmlParser.DeSerialize("test.zip");
    188       Console.WriteLine(ViewOnlyGenerator.Serialize(r));
    189       Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     188      Console.WriteLine(DebugStringGenerator.Serialize(r));
     189      Console.WriteLine(DebugStringGenerator.Serialize(o));
    190190    }
    191191
     
    199199      XmlGenerator.Serialize(cs, "test3.zip");
    200200      object o = XmlParser.DeSerialize("test3.zip");
    201       Console.WriteLine(ViewOnlyGenerator.Serialize(cs));
    202       Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     201      Console.WriteLine(DebugStringGenerator.Serialize(cs));
     202      Console.WriteLine(DebugStringGenerator.Serialize(o));
    203203    }
    204204
     
    219219      XmlGenerator.Serialize(arrayListArray, "test4.zip");
    220220      object o = XmlParser.DeSerialize("test4.zip");
    221       Console.WriteLine(ViewOnlyGenerator.Serialize(arrayListArray));
    222       Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     221      Console.WriteLine(DebugStringGenerator.Serialize(arrayListArray));
     222      Console.WriteLine(DebugStringGenerator.Serialize(o));
    223223    }
    224224
     
    227227      XmlGenerator.Serialize(m, "test2.zip");
    228228      object o = XmlParser.DeSerialize("test2.zip");
    229       Console.WriteLine(ViewOnlyGenerator.Serialize(m));
    230       Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     229      Console.WriteLine(DebugStringGenerator.Serialize(m));
     230      Console.WriteLine(DebugStringGenerator.Serialize(o));
    231231    }
    232232
     
    237237      XmlGenerator.Serialize(sdt, "test5.zip");
    238238      object o = XmlParser.DeSerialize("test5.zip");
    239       //Console.WriteLine(ViewOnlyGenerator.Serialize(sdt));
    240       //Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     239      //Console.WriteLine(DebugStringGenerator.Serialize(sdt));
     240      //Console.WriteLine(DebugStringGenerator.Serialize(o));
    241241    }
    242242
     
    248248      XmlGenerator.Serialize(mDimString, "test6.zip");
    249249      object o = XmlParser.DeSerialize("test6.zip");
    250       Console.WriteLine(ViewOnlyGenerator.Serialize(mDimString));
    251       Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     250      Console.WriteLine(DebugStringGenerator.Serialize(mDimString));
     251      Console.WriteLine(DebugStringGenerator.Serialize(o));
    252252    }
    253253
     
    261261      XmlGenerator.Serialize(t, "test7.zip");
    262262      object o = XmlParser.DeSerialize("test7.zip");
    263       Console.WriteLine(ViewOnlyGenerator.Serialize(t));
    264       Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     263      Console.WriteLine(DebugStringGenerator.Serialize(t));
     264      Console.WriteLine(DebugStringGenerator.Serialize(o));
    265265    }
    266266
     
    270270      XmlGenerator.Serialize(strings, "test8.zip");
    271271      object o = XmlParser.DeSerialize("test8.zip");
    272       Console.WriteLine(ViewOnlyGenerator.Serialize(strings));
    273       Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     272      Console.WriteLine(DebugStringGenerator.Serialize(strings));
     273      Console.WriteLine(DebugStringGenerator.Serialize(o));
    274274    }
    275275
     
    287287      XmlGenerator.Serialize(12.3f, "test9.zip");
    288288      object o = XmlParser.DeSerialize("test9.zip");
    289       Console.WriteLine(ViewOnlyGenerator.Serialize(12.3f));
    290       Console.WriteLine(ViewOnlyGenerator.Serialize(o));
     289      Console.WriteLine(DebugStringGenerator.Serialize(12.3f));
     290      Console.WriteLine(DebugStringGenerator.Serialize(o));
    291291    }
    292292
Note: See TracChangeset for help on using the changeset viewer.