/// <summary>
        /// Writes the value expressed as a <code>range</code>, which is the behavior when the current time reaches its start or end times.  The default value is `LOOP_STOP`.
        /// </summary>
        /// <param name="value">The clock range.</param>
        public void WriteRange(ClockRange value)
        {
            const string PropertyName = RangePropertyName;

            OpenIntervalIfNecessary();
            Output.WritePropertyName(PropertyName);
            Output.WriteValue(CesiumFormattingHelper.ClockRangeToString(value));
        }
 /// <summary>
 /// Converts a <see cref="ClockRange"/> to the corresponding string in a CZML stream.
 /// </summary>
 /// <param name="value">The value to convert.</param>
 /// <returns>The string representing the specified value.</returns>
 public static string ClockRangeToString(ClockRange value)
 {
     switch (value)
     {
         case ClockRange.Clamped:
             return "CLAMPED";
         case ClockRange.Unbounded:
             return "UNBOUNDED";
         case ClockRange.LoopStop:
             return "LOOP_STOP";
         default:
             throw new ArgumentException(CesiumLocalization.UnknownEnumerationValue, "value");
     }
 }
        /// <summary>
        /// Converts a <see cref="ClockRange"/> to the corresponding string in a
        /// CZML stream.
        /// </summary>
        /// <param name="clockRange">The label style to convert.</param>
        /// <returns>The string representing the specified <see cref="CesiumLabelStyle"/>.</returns>
        public static string ClockRangeToString(ClockRange clockRange)
        {
            switch (clockRange)
            {
            case ClockRange.Clamped:
                return("CLAMPED");

            case ClockRange.Unbounded:
                return("UNBOUNDED");

            case ClockRange.LoopStop:
                return("LOOP_STOP");

            default:
                throw new ArgumentException(CesiumLocalization.UnknownEnumerationValue, "clockRange");
            }
        }
        public void TestClockRangeToString(ClockRange value)
        {
            string s = CesiumFormattingHelper.ClockRangeToString(value);

            Assert.IsNotNull(s);
        }