Exemple #1
0
        public void Part1(int expectedResult, string input)
        {
            var lengths = input.SplitToIntegers(",");

            var knot = new Knot();

            foreach (var length in lengths)
            {
                knot.Flip(length);
            }

            Assert.AreEqual(expectedResult, knot.MultiplyFirstTwo());
        }