public void IsInBetweenTrue()
        {
            var sol = new SolutionDay03();

            Assert.IsTrue(sol.IsInbetween(1, 3, 2));
            Assert.IsTrue(sol.IsInbetween(-3, 0, -2));
            Assert.IsTrue(sol.IsInbetween(10, 3, 4));
            Assert.IsTrue(sol.IsInbetween(10, -3, -2));
        }
        public void TryGetIntersectionFail()
        {
            Line horizontal = new Line(Orientation.horizontal, 0, 3, 0, 0);
            Line vertical   = new Line(Orientation.vertical, 4, 4, -1, 3);

            SolutionDay03 solutionDay03 = new SolutionDay03();

            Assert.IsFalse(solutionDay03.TryGetIntersections(horizontal, vertical, out Point intersection));
        }
        public void TryGetIntersectionSucces()
        {
            Line horizontal = new Line(Orientation.horizontal, 0, 3, 0, 0);
            Line vertical   = new Line(Orientation.vertical, 1, 1, -1, 3);

            SolutionDay03 solutionDay03 = new SolutionDay03();

            if (solutionDay03.TryGetIntersections(horizontal, vertical, out Point intersection))
            {
                Assert.AreEqual(1, intersection.X);
                Assert.AreEqual(0, intersection.Y);
            }
            else
            {
                Assert.Fail();
            }
        }
        public void IsInBetweenFalse()
        {
            var sol = new SolutionDay03();

            Assert.IsFalse(sol.IsInbetween(1, 2, 3));
        }