예제 #1
0
        public void Create_returns_EntityCodeGenerator_for_EF4_and_EF5()
        {
            Assert.IsType <EntityCodeGenerator>(
                CodeGeneratorBase.Create(LanguageOption.GenerateCSharpCode, EntityFrameworkVersion.Version2));

            Assert.IsType <EntityCodeGenerator>(
                CodeGeneratorBase.Create(LanguageOption.GenerateCSharpCode, EntityFrameworkVersion.Version3));
        }
예제 #2
0
 public void Create_returns_EntityClassGenerator_for_EF1()
 {
     Assert.IsType <EntityClassGenerator>(
         CodeGeneratorBase.Create(LanguageOption.GenerateCSharpCode, EntityFrameworkVersion.Version1));
 }