示例#1
0
        public void HoursHand_Is_180Degs_At_06_00_00()
        {
            Instant time  = Instant.FromDateTimeOffset(new DateTime(2019, 1, 1, 6, 0, 0));
            var     layer = new HoursLayer();

            layer.Update(time);
            Assert.AreEqual(180, layer.Rotate);
        }
示例#2
0
        public void HoursHand_Is_15_Degs_At_00_00_UTC_In_Paris_On_A_24h_Clock()
        {
            Instant time  = Instant.FromDateTimeUtc(new DateTime(2020, 01, 01, 00, 00, 00, DateTimeKind.Utc));
            var     layer = new HoursLayer {
                TimeZone = "Europe/Paris", Is24Hours = true
            };

            layer.Update(time);
            Assert.AreEqual(15, layer.Rotate);
        }
示例#3
0
        public void HoursHand_Is_30_Degs_At_00_00_UTC_In_Paris()
        {
            Instant time  = Instant.FromDateTimeUtc(new DateTime(2020, 01, 01, 00, 00, 00, DateTimeKind.Utc));
            var     layer = new HoursLayer {
                TimeZone = "Europe/Paris"
            };

            layer.Update(time);
            Assert.AreEqual(30, layer.Rotate);
        }