public void ShouldImplementExportedInterfaces_Partial() => Verifier.VerifyAnalyzer(new[] { @"TestCases\ShouldImplementExportedInterfaces_Part1.cs", @"TestCases\ShouldImplementExportedInterfaces_Part2.cs", }, new ShouldImplementExportedInterfaces(), additionalReferences: MetadataReferenceFacade.GetSystemComponentModelComposition());
private static IEnumerable <MetadataReference> GetAdditionalReferences() => MetadataReferenceFacade.GetMsCorLib() .Concat(MetadataReferenceFacade.GetSystemComponentModelComposition());
public void PartCreationPolicyShouldBeUsedWithExportAttribute_VB() => Verifier.VerifyAnalyzer(@"TestCases\PartCreationPolicyShouldBeUsedWithExportAttribute.vb", new vbnet.PartCreationPolicyShouldBeUsedWithExportAttribute(), additionalReferences: MetadataReferenceFacade.GetSystemComponentModelComposition());
public void ShouldImplementExportedInterfaces_VB() => Verifier.VerifyAnalyzer(@"TestCases\ShouldImplementExportedInterfaces.vb", new SonarAnalyzer.Rules.VisualBasic.ShouldImplementExportedInterfaces(), additionalReferences: MetadataReferenceFacade.GetSystemComponentModelComposition());
public void ShouldImplementExportedInterfaces_CSharp9() => Verifier.VerifyAnalyzerFromCSharp9Library(@"TestCases\ShouldImplementExportedInterfaces.CSharp9.cs", new ShouldImplementExportedInterfaces(), MetadataReferenceFacade.GetSystemComponentModelComposition());
public void PartCreationPolicyShouldBeUsedWithExportAttribute_CSharp9() => Verifier.VerifyAnalyzerFromCSharp9Library(@"TestCases\PartCreationPolicyShouldBeUsedWithExportAttribute.CSharp9.cs", new csharp.PartCreationPolicyShouldBeUsedWithExportAttribute(), MetadataReferenceFacade.GetSystemComponentModelComposition());