public void SyntaxReceiver_finds_root_class_via_interface(bool useVB) { var(source, expectedType) = useVB ? (vbSource, typeof(VB.ClassBlockSyntax)) : (cSharpSource, typeof(CSharp.ClassDeclarationSyntax)); var receiver = Utils.Receiver(useVB); var classDeclarations = Utils.ClassDeclarations(useVB, source); receiver = VisitSyntaxNodes(receiver, classDeclarations); receiver.Candidates.Should().HaveCount(1); var poco = receiver.Candidates.First(); poco.Should().BeOfType(expectedType); GetName(useVB, poco).Should().Be("CliRoot"); }