コード例 #1
0
        public void Constructor_SinParametros_CreaUnaFechaDel3114AntesDeCristo()
        {
            Mayan.Calendar.Date date = new Mayan.Calendar.Date();

            Assert.That(date.Day, Is.EqualTo(13));
            Assert.That(date.Month, Is.EqualTo(8));
            Assert.That(date.Year, Is.EqualTo(3114));
            Assert.That(date.Era, Is.EqualTo(Era.BeforeCrist));
        }
コード例 #2
0
        public void Constructor_SinParametros_CreaUnaFechaDelPrimerDiaDelPrimerBaktun()
        {
            Mayan.Calendar.Date date = new Mayan.Calendar.Date();

            Assert.That(date.Baktun, Is.EqualTo(0));
            Assert.That(date.Katun, Is.EqualTo(0));
            Assert.That(date.Tun, Is.EqualTo(0));
            Assert.That(date.Uinal, Is.EqualTo(0));
            Assert.That(date.Kin, Is.EqualTo(0));
            Assert.That(date.Tzolkin.Count, Is.EqualTo(4));
            Assert.That(date.Tzolkin.Kin, Is.EqualTo(Kin.Ajaw));
            Assert.That(date.Haab.Count, Is.EqualTo(8));
            Assert.That(date.Haab.Uinal, Is.EqualTo(Uinal.Cumku));
        }