public void TimeOnly_24Hour_DoubleDigit_Test()
        {
            // Setup
            var time = new TimeOnly(14, 18);

            var settings = new DateTimeSettings
            {
                TimeFormat = TimeFormat.Hour24
            };

            // Act
            string format = time.ToSettingsString(settings);

            // Check
            Assert.AreEqual("14:18", format);
        }
        public void TimeOnly_12Hour_SingleDigit_Test()
        {
            // Setup
            var time = new TimeOnly(3, 8);

            var settings = new DateTimeSettings
            {
                TimeFormat = TimeFormat.Hour12
            };

            // Act
            string format = time.ToSettingsString(settings);

            // Check
            Assert.AreEqual("03:08 AM", format);
        }