예제 #1
0
        public void Test06()
        {
            MarsTime         deimosRise = new MarsTime(12, 32);
            MarsTime         deimosSet  = new MarsTime(17, 06);
            MarsTime         phobosRise = new MarsTime(17, 06);
            MarsTime         phobosSet  = new MarsTime(19, 78);
            MarsTimeInterval deimos     = new MarsTimeInterval(deimosRise, deimosSet);
            MarsTimeInterval phobos     = new MarsTimeInterval(phobosRise, phobosSet);

            Assert.Equal(1, MoonVisibilityCalculator.GetOverlapMinutes(deimos, phobos));
        }
예제 #2
0
        public void Test07()
        {
            MarsTime         deimosRise = new MarsTime(22, 11);
            MarsTime         deimosSet  = new MarsTime(0, 36);
            MarsTime         phobosRise = new MarsTime(7, 00);
            MarsTime         phobosSet  = new MarsTime(22, 11);
            MarsTimeInterval deimos     = new MarsTimeInterval(deimosRise, deimosSet);
            MarsTimeInterval phobos     = new MarsTimeInterval(phobosRise, phobosSet);

            Assert.Equal(1, MoonVisibilityCalculator.GetOverlapMinutes(deimos, phobos));
        }
예제 #3
0
        public void Test05()
        {
            MarsTime         deimosRise = new MarsTime(18, 55);
            MarsTime         deimosSet  = new MarsTime(4, 97);
            MarsTime         phobosRise = new MarsTime(10, 39);
            MarsTime         phobosSet  = new MarsTime(4, 00);
            MarsTimeInterval deimos     = new MarsTimeInterval(deimosRise, deimosSet);
            MarsTimeInterval phobos     = new MarsTimeInterval(phobosRise, phobosSet);

            Assert.Equal(1045, MoonVisibilityCalculator.GetOverlapMinutes(deimos, phobos));
        }
예제 #4
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));
        }
예제 #5
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));
        }
예제 #6
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));
        }
예제 #7
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));
        }