79 references to RunGenerator
Microsoft.Gen.Logging.Unit.Tests (79)
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 (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);