public void CollectionsShouldImplementGenericInterface() =>
 Verifier.VerifyAnalyzer(@"TestCases\CollectionsShouldImplementGenericInterface.cs",
                         new CollectionsShouldImplementGenericInterface(),
                         additionalReferences: MetadataReferenceFacade.GetSystemCollections(),
                         checkMode: CompilationErrorBehavior.Ignore);    // It would be too tedious to implement all those interfaces
 public void GenericTypeParameterEmptinessChecking_CSharp9() =>
 Verifier.VerifyAnalyzerFromCSharp9Console(@"TestCases\GenericTypeParameterEmptinessChecking.CSharp9.cs",
                                           new GenericTypeParameterEmptinessChecking(),
                                           MetadataReferenceFacade.GetSystemCollections());
Esempio n. 3
0
 public void GenericTypeParameterEmptinessChecking() =>
 Verifier.VerifyAnalyzer(@"TestCases\GenericTypeParameterEmptinessChecking.cs",
                         new GenericTypeParameterEmptinessChecking(),
                         additionalReferences: MetadataReferenceFacade.GetSystemCollections(),
                         checkMode: CompilationErrorBehavior.Ignore);
 public void TypesShouldNotExtendOutdatedBaseTypes() =>
 Verifier.VerifyAnalyzer(@"TestCases\TypesShouldNotExtendOutdatedBaseTypes.cs",
                         new TypesShouldNotExtendOutdatedBaseTypes(),
                         additionalReferences: MetadataReferenceFacade.GetSystemXml().Concat(MetadataReferenceFacade.GetSystemCollections()));