public void TtfFileInfoFromInvalidStreamTests() { Stream file = new MemoryStream(invalidTTFFont); TtfFileInfo info = TtfFileInfo.FromStream(file); Assert.IsNull(info); }
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); }