public void GenerateXmlIntermixed_OneItem()
 {
   var ic = new ImageCollection("png", "0000", 800, 600);
   ic.AddPostId(1);
   var actual = ic.GenerateXmlIntermixed("../../");
   Assert.AreEqual(
       "<Collection"
     + " MaxLevel=\"7\" TileSize=\"256\""
     + " Format=\"png\" NextItemId=\"2\""
     + " xmlns=\"http://schemas.microsoft.com/deepzoom/2008\""
     + ">\r\n"
     + "  <Items>\r\n"
     + "    <I N=\"0\" Id=\"1\" Source=\"../../0001.dzi\">\r\n"
     + "      <Size Width=\"800\" Height=\"600\" />\r\n"
     + "    </I>\r\n"
     + "  </Items>\r\n"
     + "</Collection>", actual.ToString());
 }
Ejemplo n.º 2
0
    public void GenerateXmlIntermixed_OneItem()
    {
        var ic = new ImageCollection("png", "0000", 800, 600);

        ic.AddPostId(1);
        var actual = ic.GenerateXmlIntermixed("../../");

        Assert.AreEqual(
            "<Collection"
            + " MaxLevel=\"7\" TileSize=\"256\""
            + " Format=\"png\" NextItemId=\"2\""
            + " xmlns=\"http://schemas.microsoft.com/deepzoom/2008\""
            + ">\r\n"
            + "  <Items>\r\n"
            + "    <I N=\"0\" Id=\"1\" Source=\"../../0001.dzi\">\r\n"
            + "      <Size Width=\"800\" Height=\"600\" />\r\n"
            + "    </I>\r\n"
            + "  </Items>\r\n"
            + "</Collection>", actual.ToString());
    }