Ejemplo n.º 1
0
 public void FromCriteria_should_obtain_default_by_name()
 {
     Assert.Equal(
         DomProviderFactory.Default,
         DomProviderFactory.FromCriteria(new { Extension = ".xml" })
         );
 }
Ejemplo n.º 2
0
 public void Providers_by_extension_should_find_HTML(string extension)
 {
     Assert.IsInstanceOf <HtmlProviderFactory>(
         DomProviderFactory.FromCriteria(new { Extension = extension })
         );
 }
Ejemplo n.º 3
0
 public void FromCriteria_should_obtain_by_file_extension()
 {
     Assert.IsInstanceOf <CustomDomProviderFactory>(
         DomProviderFactory.FromCriteria(new { Extension = ".custom" })
         );
 }