示例#1
0
        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);
        }
示例#2
0
        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");
        }