79 references to RunGenerator
Microsoft.Gen.Logging.Unit.Tests (79)
ParserTests.cs (31)
32await RunGenerator(@$" 83await RunGenerator(@" 112await RunGenerator(@" 127await RunGenerator(@" 139await RunGenerator(@" 151await RunGenerator(@" 163await RunGenerator(@" 188await RunGenerator(Source); 202await RunGenerator(Source, DiagDescriptors.MissingLogLevel); 216await RunGenerator(Source, DiagDescriptors.MissingLogLevel); 230await RunGenerator(Source, DiagDescriptors.ParameterHasNoCorrespondingTemplate); 244await RunGenerator(Source, DiagDescriptors.TemplateHasNoCorrespondingParameter); 271await RunGenerator(source); 281await RunGenerator(@$" 301await RunGenerator(Source, DiagDescriptors.RedundantQualifierInMessage); 315await RunGenerator(Source, DiagDescriptors.ShouldntMentionExceptionInMessage); 329await RunGenerator(Source, DiagDescriptors.ShouldntMentionLogLevelInMessage); 343await RunGenerator(Source, DiagDescriptors.ShouldntMentionLoggerInMessage); 349await RunGenerator(@" 372await RunGenerator(source); 406await RunGenerator(Source, DiagDescriptors.MissingRequiredType, false, includeBaseReferences: false, includeLoggingReferences: false); 432await RunGenerator(Source, DiagDescriptors.MissingRequiredType, wrap: false, includeLoggingReferences: false); 438await RunGenerator(@" 448await RunGenerator(@" 462await RunGenerator(@" 491await RunGenerator(Source, DiagDescriptors.ShouldntReuseEventIds); 508await RunGenerator(Source, DiagDescriptors.ShouldntReuseEventNames); 514await RunGenerator(@" 553await RunGenerator(@" 596await RunGenerator(@" 608await RunGenerator(@"
ParserTests.LogMethod.cs (19)
27await RunGenerator(Source, DiagDescriptors.LoggingMethodHasBody); 33await RunGenerator(@" 55await RunGenerator(Source, DiagDescriptors.MissingLoggerParameter); 69await RunGenerator(Source, DiagDescriptors.MissingLoggerMember); 112await RunGenerator(Source); 153await RunGenerator(Source, DiagDescriptors.MultipleLoggerMembers); 169await RunGenerator(Source, DiagDescriptors.PrimaryConstructorParameterLoggerHidden, 186await RunGenerator(Source, DiagDescriptors.LoggingMethodMustReturnVoid); 200await RunGenerator(Source, DiagDescriptors.LoggingMethodShouldBeStatic); 218await RunGenerator(Source, DiagDescriptors.EmptyLoggingMethod); 234await RunGenerator(Source, DiagDescriptors.EmptyLoggingMethod); 240await RunGenerator(@" 270await RunGenerator(Source, DiagDescriptors.LoggingMethodMustBePartial); 284await RunGenerator(Source, DiagDescriptors.LoggingMethodIsGeneric); 298await RunGenerator(source, DiagDescriptors.LoggingMethodParameterRefKind); 381await RunGenerator( 392await RunGenerator(@$" 414await RunGenerator(@$" 430await RunGenerator(@"
ParserTests.LogProperties.cs (16)
21await RunGenerator(@" 66await RunGenerator(Source, DiagDescriptors.TagNameCollision); 72await RunGenerator(@" 91await RunGenerator(@$" 117await RunGenerator(source, DiagDescriptors.LogPropertiesInvalidUsage); 126await RunGenerator(@$" 168await RunGenerator(source, DiagDescriptors.LogPropertiesParameterSkipped); 174await RunGenerator(@" 203await RunGenerator(Source, DiagDescriptors.LogPropertiesParameterSkipped); 216await RunGenerator(Source, DiagDescriptors.TagNameCollision); 240await RunGenerator(Source, DiagDescriptors.TagNameCollision); 266await RunGenerator(Source, DiagDescriptors.TagNameCollision); 334await RunGenerator(source, DiagDescriptors.InvalidTypeToLogProperties); 377await RunGenerator(source, DiagDescriptors.LogPropertiesCycleDetected); 400await RunGenerator(Source, DiagDescriptors.LogPropertiesHiddenPropertyDetected); 406await RunGenerator(@"
ParserTests.TagProvider.cs (13)
15await RunGenerator(@" 46await RunGenerator(@" 81await RunGenerator(@" 122await RunGenerator(source, DiagDescriptors.TagProviderInvalidUsage); 153await RunGenerator(source, DiagDescriptors.TagProviderMethodNotFound); 187await RunGenerator(source, DiagDescriptors.TagProviderMethodNotFound); 216await RunGenerator(Source, DiagDescriptors.TagProviderMethodNotFound); 241await RunGenerator(Source, DiagDescriptors.TagProviderMethodInvalidSignature); 287await RunGenerator(Source, DiagDescriptors.TagProviderMethodInvalidSignature); 315await RunGenerator(source, DiagDescriptors.TagProviderMethodInvalidSignature); 348await RunGenerator(source, DiagDescriptors.TagProviderMethodInvalidSignature); 376await RunGenerator(source, DiagDescriptors.TagProviderMethodInvalidSignature); 404await RunGenerator(source, DiagDescriptors.TagProviderMethodInaccessible);