public void Verify_can_get_diagnostic_after_instantiation() { var knowledgeBaseProvider = _provider.GetService <IKnowledgeBaseProvider>(); var config = _provider.GetService <HareDuConfig>(); var factory = new ScannerFactory(config, knowledgeBaseProvider); factory.TryGet <FakeSnapshot>(out _).ShouldBeFalse(); // Assert.AreEqual(typeof(DoNothingDiagnostic<ConnectionSnapshot>).FullName.GenerateIdentifier(), diagnostic.Identifier); }