12 references to AssertFirstLineAndRemove
System.Windows.Forms.PrivateSourceGenerators.Tests (12)
EnumValidationTests.cs (12)
315AssertFirstLineAndRemove(lines, "// <auto-generated />"); 316AssertFirstLineAndRemove(lines, "namespace SourceGenerated"); 317AssertFirstLineAndRemove(lines, "{"); 318AssertFirstLineAndRemove(lines, "internal static partial class EnumValidator"); 319AssertFirstLineAndRemove(lines, "{"); 321AssertFirstLineAndRemove(lines, "/// <summary>Validates that the enum value passed in is valid for the enum type.</summary>"); 322AssertFirstLineAndRemove(lines, $"public static void Validate({expectedEnumName} enumToValidate, string parameterName = \"value\")"); 323AssertFirstLineAndRemove(lines, "{"); 324AssertFirstLineAndRemove(lines, "int intValue = (int)enumToValidate;"); 328AssertFirstLineAndRemove(lines, line.Trim()); 331AssertFirstLineAndRemove(lines, $"ReportEnumValidationError(parameterName, intValue, typeof({expectedEnumName}));"); 333AssertFirstLineAndRemove(lines, "}");