Пример #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);
        }
 private void RegisterTestIcons()
 {
     IconFontRegistry.Reset();
     IconFontRegistry.Register(new IconFont("TestFontFamily", "test", typeof(MockFontA)));
 }