public void Can_combine() { var sut = new WordCombinationPairFinder(); var words = new [] { "fo", "obar", "sun", "shine" }; var result = sut.FindAllCombinations( words.Select(w => new InputWord(w)).ToList()); Assert.NotNull(result); Assert.Equal(12, result.Count); Assert.Contains(result, w => w.Value == "foobar"); Assert.Contains(result, w => w.Value == "obarfo"); Assert.Contains(result, w => w.Value == "sunshine"); Assert.Contains(result, w => w.Value == "sunfo"); }
public void Can_create() { var sut = new WordCombinationPairFinder(); Assert.NotNull(sut); }