85 references to RunGenerator
Microsoft.Gen.Logging.Unit.Tests (85)
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 (25)
28await RunGenerator(Source, DiagDescriptors.LoggingMethodHasBody); 34await RunGenerator(@" 56await RunGenerator(Source, DiagDescriptors.MissingLoggerParameter); 70await RunGenerator(Source, DiagDescriptors.MissingLoggerMember); 113await RunGenerator(Source); 154await RunGenerator(Source, DiagDescriptors.MultipleLoggerMembers); 170await RunGenerator(Source, DiagDescriptors.PrimaryConstructorParameterLoggerHidden, 187await RunGenerator(Source, DiagDescriptors.LoggingMethodMustReturnVoid); 201await RunGenerator(Source, DiagDescriptors.LoggingMethodShouldBeStatic); 219await RunGenerator(Source, DiagDescriptors.EmptyLoggingMethod); 235await RunGenerator(Source, DiagDescriptors.EmptyLoggingMethod); 241await RunGenerator(@" 271await RunGenerator(Source, DiagDescriptors.LoggingMethodMustBePartial); 285await RunGenerator(Source); 300await RunGenerator(Source); 316await RunGenerator(Source); 337await RunGenerator(Source, DiagDescriptors.LoggingMethodHasAllowsRefStructConstraint); 351await RunGenerator(source, DiagDescriptors.LoggingMethodParameterRefKind); 364await RunGenerator(Source, DiagDescriptors.LoggingMethodParameterParams); 377await RunGenerator(Source); 390await RunGenerator(Source, DiagDescriptors.LoggingMethodParameterParams); 473await RunGenerator( 484await RunGenerator(@$" 506await RunGenerator(@$" 522await 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);