Esempio n. 1
0
 public void VerticalOriginCanBeWrittenAsSimpleString()
 {
     using (Packet)
         using (VerticalOriginCesiumWriter writer = new VerticalOriginCesiumWriter("foo"))
         {
             writer.Open(OutputStream);
             writer.WriteVerticalOrigin(CesiumVerticalOrigin.Center);
         }
     Assert.AreEqual("{\"foo\":\"CENTER\"}", StringWriter.ToString());
 }
Esempio n. 2
0
        public void VerticalOriginCanBeWrittenInsideInterval()
        {
            JulianDate startDate = new GregorianDate(2012, 6, 7, 12, 0, 0).ToJulianDate();

            using (Packet)
                using (VerticalOriginCesiumWriter writer = new VerticalOriginCesiumWriter("foo"))
                {
                    writer.Open(OutputStream);
                    writer.WriteInterval(startDate, startDate.AddSeconds(100.0));
                    writer.WriteVerticalOrigin(CesiumVerticalOrigin.Center);
                }
            Assert.AreEqual("{\"foo\":{\"interval\":\"20120607T12Z/20120607T120140Z\",\"verticalOrigin\":\"CENTER\"}}", StringWriter.ToString());
        }