Esempio n. 1
0
 public void EntityFramework_assembly_has_no_security_attributes()
 {
     Assert.False(EntityFrameworkAssembly.GetCustomAttributes <SecurityTransparentAttribute>().Any());
     Assert.False(EntityFrameworkAssembly.GetCustomAttributes <SecurityCriticalAttribute>().Any());
     Assert.False(EntityFrameworkAssembly.GetCustomAttributes <AllowPartiallyTrustedCallersAttribute>().Any());
     Assert.False(EntityFrameworkAssembly.GetCustomAttributes <SecurityRulesAttribute>().Any());
 }
Esempio n. 2
0
 public void TableAttribute_is_type_forwarded_on_net45_but_not_on_net40()
 {
     AssertTypeIsInExpectedAssembly(EntityFrameworkAssembly.GetType("System.ComponentModel.DataAnnotations.Schema.TableAttribute"));
 }
Esempio n. 3
0
 public void DatabaseGeneratedOption_is_type_forwarded_on_net45_but_not_on_net40()
 {
     AssertTypeIsInExpectedAssembly(
         EntityFrameworkAssembly.GetType("System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption"));
 }