public void Be_Creatable()
        {
            var iconChar  = IconChar.Accusoft;
            var iconImage = new IconImage {
                Icon = iconChar, IconFont = IconFont.Auto
            };

            iconImage.Should().NotBeNull();
            iconImage.Should().BeAssignableTo <IHaveIconFont>();
            iconImage.Icon.Should().Be(iconChar);
            iconImage.IconFont.Should().Be(IconFont.Auto);
        }
Пример #2
0
        public void Be_Creatable(IconChar iconChar)
        {
            var iconImage = new IconImage {
                Icon = iconChar
            };

            iconImage.Should().NotBeNull();
            iconImage.Icon.Should().Be(iconChar);
        }