示例#1
0
        public void ShouldReadtEXtFromLena()
        {
            string filePath = @"../../../Data/lena2.png";
            tEXt   text     = new tEXt(PNGFile.Read(filePath)[5]);

            Assert.AreEqual("tEXt", text.Type);
            Assert.AreEqual("date:create", text.Keyword);
        }
示例#2
0
        public void ShouldReadtEXtFromItxt()
        {
            string filePath = @"../../../Data/itxt.png";
            tEXt   text     = new tEXt(PNGFile.Read(filePath)[7]);

            Assert.AreEqual("tEXt", text.Type);
            Assert.AreEqual("Title", text.Keyword);
            Assert.AreEqual("PNG", text.Text);
        }