Example #1
0
        public void FindClaimWithoutOverlapTest()
        {
            var input = TestInput.Select(x => new Claim(x)).ToList();

            Assert.AreEqual(3, Problem3.FindClaimWithoutOverlap(input, Problem3.CreateGrid(input)));
        }
Example #2
0
        public void CountOverlappingSquaresTest()
        {
            var grid = Problem3.CreateGrid(TestInput.Select(x => new Claim(x)).ToList());

            Assert.AreEqual(4, Problem3.CountOverlappingSquares(grid));
        }