Пример #1
0
        public void testSerializeWithNullPrecipitationData()
        {
            Outgester serializer = new Outgester();
            string    json       = serializer.serialize(null);

            Assert.IsNull(json);
        }
Пример #2
0
        public void testSerializeWithPrecipitationData()
        {
            Outgester serializer = new Outgester();
            HistoricalPrecipitation prediction
                = new HistoricalPrecipitation("station", "identification", 1.0, 2.0, 3.0, DateTime.Now, 4.0);
            string json = serializer.serialize(prediction);

            Assert.IsNotNull(json);
        }