Exemplo n.º 1
0
        public void CapsuleFallsThroughDisc()
        {
            var disc = new Disc {
                Positions = 5, Current = 4
            };
            var expected = true;

            var sut = new AdventOfCode2016.Day15.Day15(time: 0, discs: disc);

            var actual = sut.CapsuleFallsThrough();

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void CapsuleBouncesOffSecondDisc(int time, bool expected)
        {
            var discs = new Disc[] {
                new Disc {
                    Positions = 5, Current = 4
                },
                new Disc {
                    Positions = 2, Current = 1
                }
            };

            var sut = new AdventOfCode2016.Day15.Day15(time, discs);

            var actual = sut.CapsuleFallsThrough();

            Assert.Equal(expected, actual);
        }