public void LexicoPermutator_Permutate_NullList_ThrowException() { // Arrange var exceptionThrown = false; // Act try { var actual = _permutator.Permutate(null); } catch (ArgumentNullException) { exceptionThrown = true; } // Assert Assert.IsTrue(exceptionThrown); }
public IEnumerable <string> GetPermutations([FromQuery] string w) { return(permutator.Permutate(w)); }