package test.services.testCase
{
    import module.statistics.service.proxy.StatisticsService;
    
    import net.digitalprimates.fluint.tests.TestCase;

    public class TestStatisticsServiceRandomLinesOfCode extends TestCase
    {
        public function TestStatisticsServiceRandomLinesOfCode()
        {
            super();
        }
        
        [Test(description="Assert that the lines are between MIN and MAX")]
        public function randomLinesOfCode() : void
        {
            var linesCount : Number = StatisticsService.randomLinesOfCode();
            
            assertTrue(
                StatisticsService.MIN_LINES_COUNT <= linesCount &&
                StatisticsService.MAX_LINES_COUNT >= linesCount);
            assertTrue(linesCount - Math.round(linesCount) == 0);
        }
        
    }
}