コード例 #1
0
        public unsafe void GetFontCacheLimitUpdatesAndReturnsPrevious()
        {
            var limit = SKGraphics.GetFontCacheLimit();

            Assert.NotEqual(0, limit);

            var oldLimit = SKGraphics.SetFontCacheLimit(limit + 1);

            Assert.Equal(limit, oldLimit);

            var newLimit = SKGraphics.SetFontCacheLimit(limit);

            Assert.Equal(limit + 1, newLimit);
        }
コード例 #2
0
        public unsafe void GetFontCacheLimitIsNotZero()
        {
            var limit = SKGraphics.GetFontCacheLimit();

            Assert.NotEqual(0, limit);
        }