Esempio n. 1
0
        public void EmptyModule_HasMetricsZeroed()
        {
            var code = @"";

            using (var state = MockParser.ParseString(code, out var _))
            {
                var metricResult = analyst.GetMetrics(state).First();
                Assert.AreEqual("0", metricResult.Value);
            }
        }
Esempio n. 2
0
        public void EmtpyModule_HasNoNestingLevelMetrics()
        {
            var code = @"";

            using (var state = MockParser.ParseString(code, out var _))
            {
                var metrics = analyst.GetMetrics(state).ToList();
                Assert.AreEqual(0, metrics.Count);
            }
        }
Esempio n. 3
0
        public void EmptyModule_HasNoMemberMetricResults()
        {
            var code = @"";

            using (var state = MockParser.ParseString(code, out var qmn))
            {
                var metrics = analyst.GetMetrics(state).ToList();
                Assert.AreEqual(0, metrics.Count);
            }
        }