public void CanWriteReferences()
 {
     CesiumWritingHelper.WriteReferences(m_outputStream, new List <Reference> {
         new Reference("bar", "color"), new Reference("foo", "color2")
     });
     Assert.AreEqual("[\"bar#color\",\"foo#color2\"]", m_stringWriter.ToString());
 }
Exemplo n.º 2
0
        /// <summary>
        /// Writes the value expressed as a <c>references</c>, which is the list of positions specified as references.  Each reference is to a property that defines a single position, which may change with time.
        /// </summary>
        /// <param name="references">The list of references.</param>
        public void WriteReferences(IEnumerable <Reference> references)
        {
            const string PropertyName = ReferencesPropertyName;

            OpenIntervalIfNecessary();
            Output.WritePropertyName(PropertyName);
            CesiumWritingHelper.WriteReferences(Output, references);
        }