public void ShouldCalculateNumberOfLinesForFooThird()
        {
            var method = _methodFinder.Find("Third");
            var lineCalculator = new NumberOfLinesCalculator(_MaxLines);
            var loc = lineCalculator.Calculate(method);

            Assert.That(loc.Result, Is.InRange(4, 6));
        }
        public void ShouldCalculateNumberOfLinesForFooFourth()
        {
            var method         = _assemblySearcher.FindMethod("Fourth");
            var lineCalculator = new NumberOfLinesCalculator(_MaxLines);
            var loc            = lineCalculator.Calculate(method);

            Assert.That(loc.Result, Is.InRange(11, 19));
        }
        public void ShouldCalculateNumberOfLinesForFooThird()
        {
            var method         = _methodFinder.Find("Third");
            var lineCalculator = new NumberOfLinesCalculator(_MaxLines);
            var loc            = lineCalculator.Calculate(method);

            Assert.That(loc.Result, Is.InRange(4, 6));
        }
        public void ShouldCalculateNoLForAllMethodsInCollection()
        {
            var lineCalculator = new NumberOfLinesCalculator(_MaxLines);
            var types = _methodFinder.GetAllTypes();

            var results = lineCalculator.Calculate(types);

            var numberOfClasses = results.ClassResults.Count;
            var numberOfMethods = results.ClassResults[0].MethodResults.Count;

            Assert.That(numberOfClasses,Is.EqualTo(1));
            Assert.That(numberOfMethods,Is.EqualTo(5));
        }
        public void ShouldCalculateNoLForAllMethodsInCollection()
        {
            var lineCalculator = new NumberOfLinesCalculator(_MaxLines);
            var types          = _assemblySearcher.GetAllTypes();

            var results = lineCalculator.Calculate(types);

            var numberOfClasses = results.ClassResults.Count;
            var numberOfMethods = results.ClassResults[0].MethodResults.Count;


            Assert.That(numberOfClasses, Is.EqualTo(2));
            Assert.That(numberOfMethods, Is.EqualTo(6));
        }