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

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

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


                ValidateOpenSans.AssertTypeface(face);
            }
        }
Beispiel #2
0
        public void ValidGetTypefacesOpenSansFile()
        {
            var path = new DirectoryInfo(System.Environment.CurrentDirectory);

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

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

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

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