public void Test3() { // Arrange var digits = "2"; // Act var result = new Solution2().LetterCombinations(digits); // Assert CollectionAssert.AreEquivalent(new[] { "a", "b", "c" }, result); }
public void Test1() { // Arrange var digits = "23"; // Act var result = new Solution2().LetterCombinations(digits); // Assert CollectionAssert.AreEquivalent(new[] { "ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf" }, result); }
public void Test2() { // Arrange var digits = ""; // Act var result = new Solution2().LetterCombinations(digits); // Assert Assert.IsEmpty(result); }