Esempio n. 1
0
            public void ParsesAndWorks()
            {
                var subject = new Day3Solution.Part1();

                subject.Solve(new List <string>
                {
                    "#1 @ 1,3: 4x4",
                    "#2 @ 3,1: 4x4",
                }).Should().Be(4);
            }
Esempio n. 2
0
            public void Works()
            {
                var subject = new Day3Solution.Part1();

                subject.Solve(new List <Day3Solution.Claim>
                {
                    new Day3Solution.Claim()
                    {
                        Id     = 1,
                        Left   = 1,
                        Top    = 3,
                        Width  = 4,
                        Height = 4
                    },
                    new Day3Solution.Claim()
                    {
                        Id     = 2,
                        Left   = 3,
                        Top    = 1,
                        Width  = 4,
                        Height = 4
                    }
                }).Should().Be(4);
            }