Example #1
0
        public void Test04()
        {
            MarsTime         deimosRise = new MarsTime(14, 00);
            MarsTime         deimosSet  = new MarsTime(22, 40);
            MarsTime         phobosRise = new MarsTime(10, 20);
            MarsTime         phobosSet  = new MarsTime(22, 07);
            MarsTimeInterval deimos     = new MarsTimeInterval(deimosRise, deimosSet);
            MarsTimeInterval phobos     = new MarsTimeInterval(phobosRise, phobosSet);

            Assert.Equal(807, MoonVisibilityCalculator.GetOverlapMinutes(deimos, phobos));
        }
Example #2
0
        public void Test14()
        {
            MarsTime         deimosRise = new MarsTime(10, 00);
            MarsTime         deimosSet  = new MarsTime(13, 00);
            MarsTime         phobosRise = new MarsTime(15, 00);
            MarsTime         phobosSet  = new MarsTime(18, 00);
            MarsTimeInterval deimos     = new MarsTimeInterval(deimosRise, deimosSet);
            MarsTimeInterval phobos     = new MarsTimeInterval(phobosRise, phobosSet);

            Assert.Equal(0, MoonVisibilityCalculator.GetOverlapMinutes(deimos, phobos));
        }
Example #3
0
        public void Test02()
        {
            MarsTime         deimosRise = new MarsTime(24, 53);
            MarsTime         deimosSet  = new MarsTime(7, 12);
            MarsTime         phobosRise = new MarsTime(5, 12);
            MarsTime         phobosSet  = new MarsTime(8, 45);
            MarsTimeInterval deimos     = new MarsTimeInterval(deimosRise, deimosSet);
            MarsTimeInterval phobos     = new MarsTimeInterval(phobosRise, phobosSet);

            Assert.Equal(200, MoonVisibilityCalculator.GetOverlapMinutes(deimos, phobos));
        }
Example #4
0
        public void Test01()
        {
            MarsTime         deimosRise = new MarsTime(13, 91);
            MarsTime         deimosSet  = new MarsTime(23, 05);
            MarsTime         phobosRise = new MarsTime(22, 05);
            MarsTime         phobosSet  = new MarsTime(24, 45);
            MarsTimeInterval deimos     = new MarsTimeInterval(deimosRise, deimosSet);
            MarsTimeInterval phobos     = new MarsTimeInterval(phobosRise, phobosSet);

            Assert.Equal(100, MoonVisibilityCalculator.GetOverlapMinutes(deimos, phobos));
        }