Example #1
0
        public void CanParseCups()
        {
            var d = new Day23();
            var c = d.Parse("389125467");

            Assert.AreEqual("389125467", d.Describe(c));
        }
Example #2
0
        public void CanDo10Moves()
        {
            var d = new Day23();
            var c = d.Parse("389125467");

            c = d.Move(c, 10);
            Assert.AreEqual(8, c);
            Assert.AreEqual("837419265", d.Describe(c));
        }
Example #3
0
        public void CanDoFirstMove()
        {
            var d = new Day23();
            var c = d.Parse("389125467");

            c = d.MoveOne(c);
            Assert.AreEqual(2, c);
            Assert.AreEqual("289154673", d.Describe(c));
        }