public void Test_Solution_WithSample() { var input = "SKY"; var sut = new Problem42(); var actual = sut.Solve(input); Assert.AreEqual(1, actual); }
public void Test_Solution_WithFile() { var words = File.ReadAllText(Path.Combine(TestContext.CurrentContext.TestDirectory, "Data", "p042_words.txt")); var sut = new Problem42(); var actual = sut.Solve(words); Assert.AreEqual(162, actual); }