コード例 #1
0
        public void TextIsSetFromIconName()
        {
            IconFontRegistry.Reset();
            IconFontRegistry.Register(new IconFont("TestFontFamily", "test", typeof(MockFontA)));

            var span = new IconSpan {
                GlyphName = "test-foo"
            };

            Assert.Single(span.Text);
            Assert.Equal(MockFontA.Foo, span.Text);
        }
コード例 #2
0
 private void RegisterTestIcons()
 {
     IconFontRegistry.Reset();
     IconFontRegistry.Register(new IconFont("TestFontFamily", "test", typeof(MockFontA)));
 }