internal static void GenerateCodeAssertFailure(string language, IEnumerable <Type> entityTypes, params string[] errors) { var logger = new ConsoleLogger(); var options = CreateMockCodeGenContext(language, false); var host = CreateMockCodeGenerationHost(logger, null); var generatedCode = GenerateCode(host, options, entityTypes); TestHelper.AssertCodeGenFailure(generatedCode, logger, errors); }