public void ValidGetTypefacesNotoFile()
        {
            var path = new DirectoryInfo(System.Environment.CurrentDirectory);

            using (var reader = new TypefaceReader(path))
            {
                var file = new FileInfo(ValidateNoto.UrlPath);

                var face = reader.GetFirstFont(file);
                Assert.IsNotNull(face);


                ValidateNoto.AssertTypeface(face);
            }
        }
Ejemplo n.º 2
0
        public void ValidGetTypefacesNotoFile()
        {
            var path = new DirectoryInfo(System.Environment.CurrentDirectory);

            using (var reader = new TypefaceReader(path))
            {
                var file = new FileInfo(ValidateNoto.UrlPath);

                var faces = reader.GetFonts(file);
                Assert.IsNotNull(faces);

                var all = faces.ToArray();
                Assert.AreEqual(1, all.Length);

                ValidateNoto.AssertTypeface(all[0]);
            }
        }