예제 #1
0
파일: tEXtTests.cs 프로젝트: AvaPL/E-media
        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
파일: tEXtTests.cs 프로젝트: AvaPL/E-media
        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);
        }