Exemple #1
0
        public void Test_Solution_WithSample()
        {
            string input = "\"COLIN\"";
            var    sut   = new Problem22();

            var actual = sut.Solve(input);

            Assert.AreEqual(53, actual);
        }
Exemple #2
0
        public void Test_Solution_WithFile()
        {
            var names = File.ReadAllText(Path.Combine(
                                             TestContext.CurrentContext.TestDirectory,
                                             "Data",
                                             "p022_names.txt"));
            var sut = new Problem22();

            var actual = sut.Solve(names);

            Assert.AreEqual(871198282, actual);
        }