예제 #1
0
        public void TtfFileInfoFromInvalidStreamTests()
        {
            Stream      file = new MemoryStream(invalidTTFFont);
            TtfFileInfo info = TtfFileInfo.FromStream(file);

            Assert.IsNull(info);
        }
예제 #2
0
        public void TtfFileInfoFromStreamTests()
        {
            Stream      file = new MemoryStream(validTTFFont);
            TtfFileInfo info = TtfFileInfo.FromStream(file);

            Assert.AreEqual("", info.FontName);
            Assert.AreEqual(10, info.TableCount);
            Assert.AreEqual(65536, info.Version);
        }