private bool TryGetAnalyser(AnalyserId id, out IDataSourceAnalyser analyser) { if (id == AnalyserId.Empty) { analyser = new NoAnalyser(); return(true); } if (_analysis.TryGetAnalyser(id, out analyser)) { return(true); } return(false); }
public void TestConstruction() { var analyser = new NoAnalyser(); analyser.Id.Should().Be(AnalyserId.Empty, "because this placeholder for a missing / unknown analyser should only exist once and thus should have a constant id"); }