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(); }
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(); }