예제 #1
0
 public void LabelStyleCanBeWrittenAsSimpleString()
 {
     using (Packet)
         using (LabelStyleCesiumWriter writer = new LabelStyleCesiumWriter("foo"))
         {
             writer.Open(OutputStream);
             writer.WriteLabelStyle(CesiumLabelStyle.FillAndOutline);
         }
     Assert.AreEqual("{\"foo\":\"FILL_AND_OUTLINE\"}", StringWriter.ToString());
 }
예제 #2
0
        public void LabelStyleCanBeWrittenInsideInterval()
        {
            JulianDate startDate = new GregorianDate(2012, 6, 7, 12, 0, 0).ToJulianDate();

            using (Packet)
                using (LabelStyleCesiumWriter writer = new LabelStyleCesiumWriter("foo"))
                {
                    writer.Open(OutputStream);
                    writer.WriteInterval(startDate, startDate.AddSeconds(100.0));
                    writer.WriteLabelStyle(CesiumLabelStyle.FillAndOutline);
                }
            Assert.AreEqual("{\"foo\":{\"interval\":\"20120607T12Z/20120607T120140Z\",\"labelStyle\":\"FILL_AND_OUTLINE\"}}", StringWriter.ToString());
        }