95 references to RunGenerator
Microsoft.Gen.Logging.Unit.Tests (95)
ParserTests.cs (31)
31await RunGenerator(@$" 82await RunGenerator(@" 111await RunGenerator(@" 126await RunGenerator(@" 138await RunGenerator(@" 150await RunGenerator(@" 162await RunGenerator(@" 187await RunGenerator(Source); 201await RunGenerator(Source, DiagDescriptors.MissingLogLevel); 215await RunGenerator(Source, DiagDescriptors.MissingLogLevel); 229await RunGenerator(Source, DiagDescriptors.ParameterHasNoCorrespondingTemplate); 243await RunGenerator(Source, DiagDescriptors.TemplateHasNoCorrespondingParameter); 270await RunGenerator(source); 280await RunGenerator(@$" 300await RunGenerator(Source, DiagDescriptors.RedundantQualifierInMessage); 314await RunGenerator(Source, DiagDescriptors.ShouldntMentionExceptionInMessage); 328await RunGenerator(Source, DiagDescriptors.ShouldntMentionLogLevelInMessage); 342await RunGenerator(Source, DiagDescriptors.ShouldntMentionLoggerInMessage); 348await RunGenerator(@" 371await RunGenerator(source); 405await RunGenerator(Source, DiagDescriptors.MissingRequiredType, false, includeBaseReferences: false, includeLoggingReferences: false); 431await RunGenerator(Source, DiagDescriptors.MissingRequiredType, wrap: false, includeLoggingReferences: false); 437await RunGenerator(@" 447await RunGenerator(@" 461await RunGenerator(@" 490await RunGenerator(Source, DiagDescriptors.ShouldntReuseEventIds); 507await RunGenerator(Source, DiagDescriptors.ShouldntReuseEventNames); 513await RunGenerator(@" 552await RunGenerator(@" 595await RunGenerator(@" 607await RunGenerator(@"
ParserTests.LogMethod.cs (30)
29await RunGenerator(Source, DiagDescriptors.LoggingMethodHasBody); 35await RunGenerator(@" 57await RunGenerator(Source, DiagDescriptors.MissingLoggerParameter); 71await RunGenerator(Source, DiagDescriptors.MissingLoggerMember); 114await RunGenerator(Source); 155await RunGenerator(Source, DiagDescriptors.MultipleLoggerMembers); 171await RunGenerator(Source, DiagDescriptors.PrimaryConstructorParameterLoggerHidden, 188await RunGenerator(Source, DiagDescriptors.LoggingMethodMustReturnVoid); 202await RunGenerator(Source, DiagDescriptors.LoggingMethodShouldBeStatic); 220await RunGenerator(Source, DiagDescriptors.EmptyLoggingMethod); 236await RunGenerator(Source, DiagDescriptors.EmptyLoggingMethod); 242await RunGenerator(@" 272await RunGenerator(Source, DiagDescriptors.LoggingMethodMustBePartial); 286await RunGenerator(Source); 301await RunGenerator(Source); 317await RunGenerator(Source); 338await RunGenerator(Source, DiagDescriptors.LoggingMethodHasAllowsRefStructConstraint); 352await RunGenerator(source, DiagDescriptors.LoggingMethodParameterRefKind); 365await RunGenerator(Source, DiagDescriptors.LoggingMethodParameterParams); 378await RunGenerator(Source); 391await RunGenerator(Source, DiagDescriptors.LoggingMethodParameterParams); 474await RunGenerator( 485await RunGenerator(@$" 507await RunGenerator(@$" 523await RunGenerator(@" 567await RunGenerator(@$" 580await RunGenerator(@" 605await RunGenerator(@$" 623await RunGenerator(@$" 640await RunGenerator(@"
ParserTests.LogProperties.cs (21)
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); 335await RunGenerator(source, DiagDescriptors.InvalidTypeToLogProperties); 378await RunGenerator(source, DiagDescriptors.LogPropertiesCycleDetected); 409await RunGenerator(source, DiagDescriptors.LogPropertiesCycleDetected); 438await RunGenerator(source, DiagDescriptors.LogPropertiesCycleDetected); 459await RunGenerator(source, DiagDescriptors.LogPropertiesCycleDetected); 488await RunGenerator(Source, DiagDescriptors.LogPropertiesCycleDetected); 506await RunGenerator(Source); 529await RunGenerator(Source, DiagDescriptors.LogPropertiesHiddenPropertyDetected); 535await 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);