示例#1
0
 public void FromName_should_find_provider()
 {
     Assert.IsInstanceOf <HtmlProviderFactory>(
         App.GetProvider <DomProviderFactory>("html")
         );
     Assert.IsInstanceOf <HtmlProviderFactory>(DomProviderFactory.FromName("html"));
 }
示例#2
0
 public void FromName_should_obtain_default_by_name()
 {
     Assert.Equal(DomProviderFactory.Default, DomProviderFactory.FromName("Default"));
 }