public void DetectPageSize_GivenNotANumberForCustomPageSize_ReturnsDefaultPageSize()
        {
            var sut = new PageSizeAgent(defaultPageSize: 3, indexOfPageSize: 1);

            int pageSize = sut.DetectPageSize(new[] { "csvFile", "NaN" });

            Assert.That(pageSize, Is.EqualTo(3), "page size");
        }
        public void DetectPageSize_GivenNullAsArgs_ReturnsDefaultPageSize()
        {
            var sut = new PageSizeAgent(3 /* default page size */, IGNORE);

            int pageSize = sut.DetectPageSize(null);

            Assert.That(pageSize, Is.EqualTo(3), "page size");
        }
        public void DetectPageSize_GivenCustomPageSize_ReturnsDefaultPageSize()
        {
            var sut = new PageSizeAgent(IGNORE, indexOfPageSize: 1);

            int pageSize = sut.DetectPageSize(new[] { "csvFile", "5" });

            Assert.That(pageSize, Is.EqualTo(5), "page size");
        }