public StringBuilder CreateGrid(int numberofPrimes) { if (numberofPrimes == 0) { throw new ArgumentNullException(nameof(numberofPrimes)); } var grid = _gridCreator.CreatePrimeMultiGrid(numberofPrimes); return(_output.FormatOutput(grid)); }
public void CreateGrid_ParamNumberOfPrimesValueZero_ThrowsArgumentNullException() { Assert.Throws(typeof(ArgumentNullException), () => _gridCreator.CreatePrimeMultiGrid(0)); }