Ejemplo n.º 1
0
        public void Be_Creatable(IconChar iconChar)
        {
            var iconSource = new IconSource(iconChar);

            iconSource.Should().NotBeNull();
            var serviceProvider = Substitute.For <IServiceProvider>();
            var imageSource     = (ImageSource)iconSource.ProvideValue(serviceProvider);

            imageSource.Should().NotBeNull();
        }
Ejemplo n.º 2
0
        public void Be_Creatable(IconChar iconChar)
        {
            var iconSource = new IconSource(iconChar);

            iconSource.Should().NotBeNull();
            iconSource.Should().BeAssignableTo <IHaveIconFont>();
            iconSource.IconFont.Should().Be(IconFont.Auto);
            var serviceProvider = Substitute.For <IServiceProvider>();
            var imageSource     = (ImageSource)iconSource.ProvideValue(serviceProvider);

            imageSource.Should().NotBeNull();
        }