/// <summary> /// Validates code gen by comparing it against a file containing the expected output. /// </summary> /// <remarks> /// If no language is specified, C# and VB are both tested. /// </remarks> /// <param name="options">The options specifying the type of validation to perform</param> internal static void ValidateCodeGen(CodeGenValidationOptions options) { if (string.IsNullOrEmpty(options.Language)) { string errorMessage = string.Empty; options.FailOnDiff = false; options.Language = "C#"; errorMessage += TestHelper.ValidateLanguageCodeGen(options); options.Language = "VB"; errorMessage += TestHelper.ValidateLanguageCodeGen(options); if (!string.IsNullOrEmpty(errorMessage)) { Assert.Fail(errorMessage); } } else { TestHelper.ValidateLanguageCodeGen(options); } }