public void BenchmarkRawCachingReuse()
 {
     using (var store = new RawCachingGlyphStore(baseResources, font_name)
     {
         CacheStorage = sharedTemp
     })
         runFor(store);
 }
 public void BenchmarkRawCaching()
 {
     using (var temp = new TemporaryNativeStorage("fontstore-test" + Guid.NewGuid()))
         using (var store = new RawCachingGlyphStore(baseResources, font_name)
         {
             CacheStorage = temp
         })
             runFor(store);
 }
        public void TestNoCrashOnMissingResources()
        {
            using (var glyphStore = new RawCachingGlyphStore(fontResourceStore, "DoesntExist")
            {
                CacheStorage = storage
            })
                using (var fontStore = new FontStore(glyphStore, 100))
                {
                    Assert.That(glyphStore.Get('a'), Is.Null);

                    Assert.That(fontStore.Get("DoesntExist", 'a'), Is.Null);
                    Assert.That(fontStore.Get("OtherAttempt", 'a'), Is.Null);
                }
        }