Exemplo n.º 1
0
        public void FabricIntersection_Final_GetIntersectionNumber()
        {
            var fabricsIntersection = new FabricIntersection();

            var count = fabricsIntersection.GetIntersectionsCount(Day4Consts.Input1Path);

            Assert.Equal(110195, count);
        }
Exemplo n.º 2
0
        public void FabricIntersection_Small_GetNonOverlappedId()
        {
            var fabricsIntersection = new FabricIntersection();

            var id = fabricsIntersection.FindNonOverlapped(Day4Consts.Input1PathSmall).FirstOrDefault().Id;

            Assert.Equal(3, id);
        }
Exemplo n.º 3
0
        public void FabricIntersection_Small_GetIntersectionNumber()
        {
            var fabricsIntersection = new FabricIntersection();

            var count = fabricsIntersection.GetIntersectionsCount(Day4Consts.Input1PathSmall);

            Assert.Equal(4, count);
        }
Exemplo n.º 4
0
        public void FabricIntersection_Final_GetNonOverlappedId()
        {
            var fabricsIntersection = new FabricIntersection();

            var nonOverlapped = fabricsIntersection.FindNonOverlapped(Day4Consts.Input1Path);

            Assert.Single(nonOverlapped);
            Assert.Equal(894, nonOverlapped.First().Id);
        }